title: How to set same selector for all elements?
body: <p>I need to have custom checkboxes which wasn't that tricky. I made checkbox_selector to drawable folder:</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:state_enabled="false" android:drawable="@drawable/checkbox_disabled" /&gt;&lt;!-- disabled --&gt;
      &lt;item android:state_checked="false" android:state_pressed="true" android:drawable="@drawable/checkbox_unchecked_focused" /&gt;&lt;!-- pressing unchecked box --&gt;
      &lt;item android:state_checked="true" android:state_pressed="true" android:drawable="@drawable/checkbox_checked_focused" /&gt;&lt;!-- pressing checked box --&gt;
      &lt;item android:state_checked="true" android:drawable="@drawable/checkbox_checked" /&gt;&lt;!-- checked box --&gt;
      &lt;item android:state_checked="false" android:drawable="@drawable/checkbox_unchecked" /&gt;&lt;!-- unchecked box --&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>But the problem is that every checkbutton I make, I've to add</p>
  
  <pre><code>&lt;Checkbox
     android:button="@drawable/checkbox_selector" /&gt;
  </code></pre>
  
  <p>Trying to google answer for a some time and maybe I just can't find the right words.</p>
  
  <p>Can I say somewhere that every checkbox in this application should use this @drawable/checkbox_selector?</p>
  
  <p><strong>EDITED:</strong>
  Saying in styles.xml </p>
  
  <pre><code>&lt;style name="customCheckBox"&gt;
     &lt;item android:button&gt;@drawable/checkbox_selector&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Worked for me in Android 2.3.3
  But when I tried with Android 4.0.3 it doesn't work. Any Idea why is that?</p>