I have a selector for textColor
of a RadioButton
like this:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:color="#fff"/>
<item android:state_focused="true" android:color="#f00"/>
<item android:state_pressed="true" android:color="#0f0"/>
<item android:state_focused="false" android:state_pressed="false" android:color="#00f"/>
</selector>
I expected that the one selected RadioButton
will have different color than the others.
However, all of the RadioButton
s have blue text (using android:state_focused="false" android:state_pressed="false"), even the one that is selected.
What am I doing wrong?