selector disable botton
<p>I have this selector for one of my button's background</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:state_enabled="false"
          android:drawable="@drawable/bg_botton_disable"/&gt;
    &lt;item android:state_pressed="true"
          android:state_enabled="true"  
          android:drawable="@drawable/bg_botton_pressed"/&gt; &lt;!-- pressed --&gt;
    &lt;item android:state_enabled="true" 
          android:drawable="@drawable/bg_botton" /&gt; &lt;!-- default --&gt;
&lt;/selector&gt;
</code></pre>

<p></p>

<pre class="lang-java prettyprint-override"><code>(Button) bt = (Button) findviewById(R.id.MyBotton);
bt.setEnabled(false);
</code></pre>

<p>The code disables the functionality of my button. I mean when I press the button it doesn't launch its own <code>onClick()</code> method. That's fine, but the problem is that it doesn't change the background of the button to <code>bg_botton_disable</code> drawable. </p>

<p>Does anyone has any suggestion how to fix it?</p>
