title: Size of custom checkbox drawable?
body: <p>I create a custom checkbox drawable:</p>
  
  <pre><code>&lt;selector  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item
          android:state_checked="false"
          android:drawable="@drawable/ic_checkbox_unchecked" /&gt;
      &lt;item
          android:state_checked="true"
          android:drawable="@drawable/ic_checkbox_checked" /&gt;
      &lt;item
          android:drawable="@drawable/ic_checkbox_unchecked" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Which I use like this:</p>
  
  <pre><code>&lt;CheckBox
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentEnd="true"
      android:layout_centerVertical="true"
      android:button="@drawable/checkbox"
      /&gt;
  </code></pre>
  
  <p>I created two drawable images (one for unchecked and one for checked), one for each size (<code>xxxhdpi</code>, <code>xxhdpi</code>, etc).</p>
  
  <p>However, my checkbox comes out like this:</p>
  
  <p><a href="https://i.stack.imgur.com/yr5h3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yr5h3.png" alt="enter image description here"></a></p>
  
  <p>Why does it come out so big? How can I make it smaller to 20x20dp?</p>