mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-28 03:21:54 +08:00
RippleDrawable on different API levels will modulate the alphas differently for the pressed / focused / hovered states. Therefore, in order to get the desired alphas for pressed / focused / hovered states, we are using the mtrl_(low|high)_ripple_(pressed|focused|hovered|default)_alpha values which have been defined to account for the different implementations of RippleDrawable. This will allow developers to specify different colors for focused vs. pressed if desired. PiperOrigin-RevId: 255306749