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
//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
From: user2968401
Once you have different styles for the radio button you can swap them by assigning them to a new Radio Button with the style already set to the new style:
(RadioButton)layout.findViewById(R.id.radioButton) = new RadioButton(this, null, R.style.RadioButton_style);