mercredi 5 septembre 2018

Changing checkbox color prorammatically

I use this code: CompoundButtonCompat.setButtonTintList(tytTurkish, ColorStateList.valueOf(R.color.blue)); and it goes gray. My colors.xml

    <?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="colorPrimary">#3F51B5</color>
    <color name="colorPrimaryDark">#303F9F</color>
    <color name="colorAccent">#FF4081</color>

    <color name="blue">#0DFFDC</color>
    <color name="green">#B8FF0D</color>
    <color name="yellow">#FFF90D</color>
    <color name="orange">#FFA00D</color>
    <color name="red">#FF3A0D</color>

</resources>




Aucun commentaire:

Enregistrer un commentaire