dimanche 25 septembre 2016

Changing the pulse colour on a CheckBox

I have a simple CheckBox defined in XML like so:

<CheckBox
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:buttonTint="@color/primary
/>

This will correctly tint the checkbox the primary color I define. However, when tapping on the checkbox, the 'pulse' animation color is the accent color defined in the theme, rather than the button tint color I define in the XML.

How can I set this pulse color to my preferred color?




Aucun commentaire:

Enregistrer un commentaire