So, I want to apply tint to AppCompat Checkbox.
Everything works fine on Lollipop:
android:buttonTint="@color/purple_FF4081"
or this way:
android:theme="@style/Theme.MyTheme.PurpleAccent"
But setting any of this params do not change anything on pre-Lollipop. Works only if I set colorAccent
for the app theme. But I don't want all widgets to change their look, just one checkbox.
Is there any way to do this without setting colored drawables?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…