title: custom button: change style when pressed
body: <p>I created button with some shadow using a style:</p>
  
  <pre><code>&lt;style name="test"&gt;
    &lt;item name="android:shadowColor"&gt;#FFFFFF&lt;/item&gt;
    &lt;item name="android:shadowRadius"&gt;1&lt;/item&gt;
    &lt;item name="android:shadowDx"&gt;1&lt;/item&gt;
    &lt;item name="android:shadowDy"&gt;1&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>This applies a white shadow on the button's text in its normal state.  I was just wondering if anyone knows if there is a way to remove this shadow when the button is a pressed state.  In other words, is there a way to apply another style when the button is in another (pressed) state?</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>edit</strong></p>
  
  <p>bold.xml:</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="bold_text"&gt;
          &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>button.xml:</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@drawable/test_pressed"
                style="@style/bold_text"
            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>my layout:</p>
  
  <pre><code>&lt;Button
          ...
          android:background="@drawable/button"/&gt;
  </code></pre>