title: State button selector android
body: <p>I need to use a state button selector. I have read some artcicles on internet about this subject, but it still doesn't work.</p>
  
  <p>Button code(from the layout):
  </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Button
      android:id="@+id/btn_shoot"
      android:layout_width="80dp"
      android:layout_height="80dp"
      android:layout_column="0"
      android:layout_gravity="left|bottom"
      android:layout_row="2"
      android:background="@drawable/button_style"/&gt;
  </code></pre>
  
  <p>Selector code(drawable):</p>
  
  <pre class="lang-xml prettyprint-override"><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:drawable="@drawable/button_pressed"
            android:state_pressed="true" /&gt;
      &lt;item android:drawable="@drawable/button_default" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Thank's for your futures answers.</p>