title: Drawable resources and text color
body: <p>I am using <code>drawables</code> to nicely style my buttons, and that works fine, except for the text color in the button. </p>
  
  <p>I have defined a <code>state_enabled="false"</code> item in a <code>selector</code> and using <code>setEnabled</code> gives me the right button styles, but I have to jump through quite some loops to get the text color different. This code for example doesn't work (it shows no, or black, text when disabled, and darkgray when enabled):</p>
  
  <pre><code>public void setButtonsEnabled(boolean enable) {
      btnAccept.setEnabled(enable);
      btnDecline.setEnabled(enable);
  
  
      int color = R.color.White;
      if (!enable) {
          color = R.color.DarkGray;
      }
      btnAccept.setTextColor(color);
      btnDecline.setTextColor(color);
  
  }
  </code></pre>