title: Android: textColor of disabled button in selector not showing?
body: <p>I am trying to make a button with a selector my button can have the following states:</p>
  
  <ul>
  <li>Enabled/Disabled</li>
  <li>Pressed/Not Pressed</li>
  </ul>
  
  <p>According to the states mentioned above. I need to manipulate the button's:</p>
  
  <ul>
  <li>Text color </li>
  <li>background image</li>
  </ul>
  
  <p>The button starts off my being disabled so it should have the disabled textColor and the disabled button background. But I can see the default textColor (specified in style) and NO background image!</p>
  
  <p>Here is my selector button_selector.xml</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_pressed="false"
          android:state_enabled="false"
          android:textColor="#9D9FA2"
          android:drawable="@drawable/button" /&gt;    
  
      &lt;item android:state_pressed="true"
          android:state_enabled="true"
          android:drawable="@drawable/button_pressed"/&gt;
  
      &lt;item android:state_pressed="true"
          android:state_enabled="false"
          android:textColor="#9D9FA2"
          android:drawable="@drawable/button"/&gt;
  
      &lt;item android:state_pressed="false"
          android:state_enabled="true"
          android:drawable="@drawable/button"/&gt;    
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>And here is my button declaration in the my layout.xml</p>
  
  <pre><code>    &lt;Button android:id="@+id/reserve_button"
          android:text="@string/reserve_button"
          android:layout_width="120dp"
          android:layout_height="40dp"
          android:layout_marginTop="10dp"
          android:layout_marginLeft="20dp"
          android:paddingRight="15dp"
          android:layout_gravity="left"
          style="@style/buttonStyle"
          android:background="@drawable/button_selector" /&gt;
  </code></pre>
  
  <p>And finally this is my style (where my default textColor is set)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
   &lt;resources&gt;
  
       &lt;style name="buttonStyle"&gt;
        &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
        &lt;item name="android:textColor"&gt;#282780&lt;/item&gt;
        &lt;item name="android:textSize"&gt;18sp&lt;/item&gt;
       &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>Please help!</p>