title: android button selector
body: <p>This is a button selector such that when normal it appears red, when pressed it appears grey.</p>
  
  <p>I would like to ask how could the code be further directly modified such that when PRESSED the text size and color could also change? Many thanks!</p>
  
  <p>
  </p>
  
  <pre><code>&lt;item android:state_pressed="true" &gt;         
      &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
          &lt;stroke android:width="2dp" android:color="@color/black" /&gt;
          &lt;solid android:color="@color/grey"/&gt;
          &lt;padding android:left="5dp" android:top="2dp" 
              android:right="5dp" android:bottom="2dp" /&gt; 
          &lt;corners android:radius="5dp" /&gt; 
      &lt;/shape&gt;    
  &lt;/item&gt;
  
  &lt;item&gt;
      &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
          &lt;stroke android:width="2dp" android:color="@color/black" /&gt;
          &lt;solid android:color="#FF6699"/&gt;
          &lt;padding android:left="5dp" android:top="2dp" 
              android:right="5dp" android:bottom="2dp" /&gt; 
          &lt;corners android:radius="5dp" /&gt; 
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>