title: Button text disappears after setting text colors
body: <p>My buttons use two XML files to do some fancy color switching when pressed, but I have a problem with the color drawable (dunno what to call it)...</p>
  
  <p>Here's a button</p>
  
  <pre><code>&lt;Button
          android:background="@drawable/main_loginbtn"
          android:textColor="@color/main_loginbtn"
          android:id="@+id/button1"
          style="?android:attr/buttonStyleSmall"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textStyle="bold"
          android:onClick="login"
          android:text="Login" /&gt;
  </code></pre>
  
  <p>(I know I shouldn't use hardcoded strings, but I will change this later :)</p>
  
  <p>Here's @drawable/main_loginbtn</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="true"&gt;
      &lt;shape android:shape="rectangle" &gt;
          &lt;solid android:color="#FFFFFF"/&gt;
          &lt;stroke android:width="2dp"
                  android:color="#00BFFF"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;item&gt;
      &lt;shape android:shape="rectangle" &gt;
          &lt;solid android:color="#00BFFF"/&gt;
          &lt;stroke android:width="2dp"
                  android:color="#FFFFFF"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And finally, here's the @color/main_loginbtn file</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="true" android:color="#00BFFF"/&gt;
  &lt;item android:color="#FFFFFF"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>If I remove the textColor reference to @color/main_loginbtn, it will fix the problem and the text will reappear on the button (in black of course). So i'm pretty sure the problem is in the color drawable.</p>
  
  <p>Normally, I wouldn't care about this, but it messes up the scaling on some buttons because of wrap_content, when there's no text inside the buttons.</p>
  
  <p>Thanks for your time!</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I tried creating a second random color drawable, and tested it on a TextView's textColor attribute, and the same problem arose... The entire TextView text disappeared.</p>
  
  <p>So i'm thinking it's a problem with the selector?</p>
  
  <p>Oh, and I also messed up in this question: Nothing "disappears" per say, but rather I can't see the text in the eclipse layout UI. When I run it in the emulator, everything works fine...</p>