title: Setting the Disabled background image for a Checkbox
body: <p>I have created a drawable selector xml file that my checkboxes reference. The ON and OFF selections work fine, but the disabled selector does nothing when I programmatically disable the view. What is the correct way to set the image for the disabled state within the xml selector? </p>
  
  <p>XML File: </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/checkbox_on" android:state_checked="true"/&gt;
      &lt;item android:drawable="@drawable/checkbox_off" android:state_checked="false"/&gt;
      &lt;item android:drawable="@drawable/checkbox_disabled" android:state_enabled="false"/&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>Java Code:</p>
  
  <pre><code>CheckboxAppDaily.setEnabled(false);
  </code></pre>