title: Apply Different Style to Button When Pressed
body: <p>Is there a way to apply a style to a button when the button is pressed?</p>
  
  <p>If I have a style in <strong>style.xml</strong>:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="test"&gt;
          &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>a selector in <strong>button.xml</strong>:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@drawable/test_pressed"
                style="@style/test"
            android:state_pressed="true"/&gt;
      &lt;item android:drawable="@drawable/test_focused"
            android:state_focused="true"/&gt;
      &lt;item android:drawable="@drawable/test_normal"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>then how would I reference <strong>button.xml</strong> in my layout?</p>
  
  <pre><code>&lt;Button
          ...
          android:???="button"/&gt;
  </code></pre>
  
  <p>Thanks!</p>