Can't change Radio Button color on Android

后端 未结 8 1663
忘了有多久
忘了有多久 2021-01-01 23:52

I\'m using Android Studio. I need to change the color of the Radio Button, after changing the Button Tint Color value to the one I need it works on the preview, but whenever

8条回答
  •  佛祖请我去吃肉
    2021-01-02 00:01

    After reading @Ranjith's answer i did a little digging and this seemed to work. Just add it to your AppTheme.

        //red is the color of the pressed state and activated state
        @android:color/holo_red_light
        //black is the color of the normal state
        @android:color/black
    

    My question is how do you do this programatically as I have dynamic radio buttons??

提交回复
热议问题