title: How to set the text style of a button in selectors?
body: <p>Button selectors allows to define a background for each state of the button, but how can the button's text style be defined for each state? My objective is to grey out a button when disabled. So I set a greyed out background to the disable state of the button, but the only way I found to also grey out the text is to change it's color dynamically when I disable the button...</p>
  
  <p>Anybody can help?</p>
  
  <p>Thanks</p>
  
  <pre><code>&lt;style name="srp_button" parent="@android:style/Widget.Button"&gt;
      &lt;item name="android:background"&gt;@drawable/btn_default&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#ffffff&lt;/item&gt; &lt;!-- How to specify different color for different state? --&gt;
      &lt;!-- more stuff --&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><b>drawable/btn_default.xml</b></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="true"&gt;&lt;shape&gt;
              &lt;solid android:color="@color/pink" /&gt;
              &lt;corners android:radius="6dp" /&gt;
          &lt;/shape&gt;&lt;/item&gt;
      &lt;item&gt;&lt;shape&gt;
              &lt;solid android:color="#000000" /&gt;
              &lt;corners android:radius="6dp" /&gt;
          &lt;/shape&gt;&lt;/item&gt;
  
  &lt;/selector&gt;
  </code></pre>