title: Android - Selector does not work for text in button
body: <p>Using Android Studio.  I'm trying to use a selector to make the text in a button turn from white to dark gray.  Only the text, not the background of the button.</p>
  
  <p>Here is my 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:drawable="@android:color/darker_gray" android:state_pressed="true"&gt;&lt;/item&gt;
      &lt;item android:drawable="@android:color/white" android:state_focused="true"&gt;&lt;/item&gt;
      &lt;item android:drawable="@android:color/white" android:state_enabled="true" android:state_focused="false" android:state_pressed="false"&gt;&lt;/item&gt;
      &lt;item android:drawable="@android:color/white" android:state_enabled="false"&gt;&lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And here is my Button xml:</p>
  
  <pre><code>&lt;Button
      android:layout_width="match_parent"
      android:layout_height="45dp"
      android:text="Maps"
      android:id="@+id/buttonMaps"
      android:layout_above="@+id/buttonEmail"
      android:layout_marginBottom="5dp"
      android:layout_centerHorizontal="true"
      android:textColor="@drawable/selector"     &lt;------- **SELECTOR NOT WORKING**
      android:background="#7f2f74a0"             &lt;------- **but it does work if I stick it here**
      android:textSize="20sp" /&gt;
  </code></pre>
  
  <p>In the preview panel, I receive a rendering error message that reads, "Failed to configure parser for /Users...src/main/res/drawable/selector.xml"</p>
  
  <p>I've tried a number of solutions from SO, and nothing has worked, including cleaning and rebuilding the project.  Interestingly, I got curious and applied the selector to the button's background and it works - the button background defaults to white and changes to gray when pressed.</p>
  
  <p>Anyone smarter than I am have a solution to this?</p>
  
  <p>Thanks!</p>