How to apply custom image to checkbox in android
<p>Hi, I'm trying to apply custom image to checkbox in android,for this I create an check_custom.xml file in which I define custom image for different states of check box like: </p>

<pre><code>&lt;item android:state_checked="true" 
      android:drawable="@drawable/btn_check_on" /&gt; &lt;!-- checked --&gt; 
&lt;item android:state_checked="false" 
      android:drawable="@drawable/btn_check_off" /&gt; &lt;!-- unchecked --&gt; 
&lt;item android:state_focused="true"
      android:drawable="@drawable/btn_check_onfocus" /&gt;    &lt;!--on focus--&gt; 
&lt;item android:drawable="@drawable/btn_check_off" /&gt; &lt;!-- default --&gt; 
</code></pre>

<p>Three different images on three states on checked,on focus and on unchecked,
and then I assign this xml file to background attribute of check boxes,but I'm not getting required result, this technique apply the custom image as well as default image both,
please kindly help me what's wrong with this any help in this regard is greatly appreciated. Thanks.</p>
