Android selector - Text color
<p>the background of a button is set based on selectors defined as:</p>

<pre><code> &lt;selector xmlns:android="http://schemas.android.com/apk/res/android" android:dither="true"&gt;
      &lt;item android:state_checked="true" android:drawable="@drawable/checked" /&gt;
      &lt;item android:state_focused="true" android:drawable="@drawable/focused" /&gt;
      &lt;item android:drawable="@drawable/normal"/&gt;
   &lt;/selector&gt;
</code></pre>

<p>How do I define the button's text color based on its state (pressed / focused)? This doesn't work:</p>

<pre><code>    &lt;selector xmlns:android="http://schemas.android.com/apk/res/android" android:dither="true"&gt;
      &lt;item android:state_checked="true" android:drawable="@drawable/checked" android:textColor="#CCCCCCCC"/&gt;
   &lt;/selector&gt;
</code></pre>
