my source selector
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/button_pressed" android:state_focused="true" android:state_pressed="true"></item>
<item android:drawable="@drawable/button_selected" android:state_activated="true"></item>
<item android:drawable="@drawable/button_normal"></item>
</selector>
an example of how I set the style – button_normal.xml
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#F1F4F2" />
<corners
android:bottomLeftRadius="7dip"
android:topLeftRadius="7dip" />
</shape>
how in the “shape” set the size and color of the text?
maybe there is another way to set the size and color for the selector?
This way is just for the background of the button.
You should use another selector on the
android:textColor="@color/your_color_selector"and put this file under theres/color folderHere is an example:
your_color_selector.xml