title: Statelist drawable android:state_enabled not working in xml
body: <p>I'm trying to add to my existing statelist drawable, a disabled state and it just doesn't work.</p>
  
  <p>originally, I had this code:</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;item android:drawable="@drawable/store_item_background_selected" android:state_selected="true"/&gt;
  &lt;item android:drawable="@drawable/store_item_background"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>and it worked perfectly for selected and not selected.</p>
  
  <p>now I wanted to add the android:state_enabled="false" 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;item android:drawable="@drawable/store_item_background_selected" android:state_selected="true"/&gt;
  &lt;item android:drawable="@drawable/store_item_background" android:state_enabled="true"/&gt;
  &lt;item android:drawable="@drawable/store_item_background_disabled"/&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>and it never switches to the disabled image.</p>
  
  <p>any ideas?</p>
  
  <p>EDIT</p>
  
  <p>I added <code>setEnabled(false)</code> to the constructor of the view I'm setting this statelist drwable and now I see the disabled image, but once I set the view to enabled, it won't switch to disabled again.</p>