I would like to create a button style which all of my buttons use, this way I do not need to set the android:textColor on each one.
I have this styling in a file named defaultbutton.xml
<item android:state_pressed="false" android:state_focused="false">
<shape android:shape="rectangle">
<solid android:color="#F3C22C"/>
<corners android:radius="10dp" />
</shape>
<color android:color="@color/brown"></color>
</item>
And for a test button I set:
android:background="@drawable/defaultbutton"
The button gets the background color but the text color stays as black.
What am I doing wrong?