Change style font color at runtime on Button.
<p>It's okay with everyone?</p>

<p>I have a style buttons to work with high contrast, ie when the button is out of focus, white background and black font. Receives focus when the background is changed to black and need to put a white font, can not apply a white font on the button when it is selected, in an elegant way.</p>

<p>like this...</p>

<p>selector of white buttons: </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
&lt;item android:state_enabled="false" android:drawable="@drawable/btn_red" /&gt;
&lt;item android:state_pressed="true" android:state_enabled="true"     android:drawable="@drawable/btn_black" style="@style/Button.WhiteFont" /&gt;
&lt;item android:state_focused="true" android:state_enabled="true"     android:drawable="@drawable/btn_black" style="@style/Button.WhiteFont"  /&gt;
&lt;item android:state_enabled="true" android:drawable="@drawable/btn_white" /&gt;
&lt;/selector&gt;
</code></pre>
