title: Is there a way to set drawable's Alpha using XML?
body: <p>Easy like itself . I wanna make an alpha button , which would have a selected drawable this way:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;!-- Play/Pause --&gt;
      &lt;item android:state_selected="false" android:drawable="@drawable/item" /&gt;
      &lt;item android:state_selected="true" android:drawable="@drawable/item" /&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>I would wanna make something like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;!-- Play/Pause --&gt;
      &lt;item android:alpha="125" android:state_selected="false" android:drawable="@drawable/item" /&gt;
      &lt;item android:alpha="255" android:state_selected="true" android:drawable="@drawable/item" /&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>Thanks for all .</p>