You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When colorControlHighlight is a ColorStateList with theme attributes, MaterialCheckBox ripples are red on Lollipop:
v22
v29
Expected behavior:
See v29^
Fixing this would require tinting the background programmatically, using AppCompatResources to load colorControlHighlight, rather than using it from XML.
Source code:
In the app theme, override colorControlHighlight to point to a CSL:
Hi @ataulm, unfortunately globally setting colorControlHighlight to a CSL with theme attributes is not a safe thing to do, because that attribute is used in many places by many widgets (framework, AppCompat, etc.), and it's not guaranteed that they all use AppCompatResources to load the attribute.
E.g., in this case, the loading of colorControlHighlight isn't in MaterialCheckBox. I think it's in AppCompatCheckBox, so you may be able to file an AppCompat bug.
Description:
When
colorControlHighlight
is a ColorStateList with theme attributes, MaterialCheckBox ripples are red on Lollipop:Expected behavior:
See v29^
Fixing this would require tinting the background programmatically, using
AppCompatResources
to loadcolorControlHighlight
, rather than using it from XML.Source code:
In the app theme, override
colorControlHighlight
to point to a CSL:Android API version:
21,22
Material Library version:
1.1.0, 1.2.0-alpha06
Device:
Emulator
To help us triage faster, please check to make sure you are using the latest version of the library.
We also happily accept pull requests.
The text was updated successfully, but these errors were encountered: