title: Android - Button's textColor with a selector not working
body: <p>I am trying to use a selector as button's textColor. But, for some reasons, the textColor becomes pink. I've searched a lot but couldn't find any solution for this case. </p>
  
  <p>main_button_text_color.xml</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_focused="true" android:drawable="@android:color/black"/&gt;
      &lt;item android:state_pressed="true" android:drawable="@android:color/black"/&gt;
      &lt;item android:drawable="@android:color/white"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Button</p>
  
  <pre><code>&lt;Button
          android:id="@+id/btnRegister"
          android:layout_width="300dp"
          android:layout_height="50dp"
          android:layout_gravity="center"
          android:layout_marginBottom="15dp"
          android:background="@drawable/main_button_background"
          android:text="register"
          android:textColor="@drawable/main_button_text_color" /&gt;
  </code></pre>
  
  <p>the result : <a href="https://i.stack.imgur.com/i1AZ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i1AZ2.png" alt="Button Image"></a></p>