title: Custom Checkbox changes its size when isChecked is true Android?
body: <p>I have an single choice ExpandableListView with a custom checkbox defined by a Drawable I created in the Android Asset Studio. </p>
  
  <p>For some reason, when the checkbox is checked it looks smaller than when it is not. I already checked if I made a mistake with the size of the images and they all have the same size. (disabled or enabled). </p>
  
  <p>Here's the code of my custom checkbox: </p>
  
  <p>drawable/custom_checkbox.xml</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/ic_success_enabled" android:state_checked="true" android:state_focused="true"/&gt;
      &lt;item android:drawable="@drawable/ic_accept_disabled" android:state_checked="false" android:state_focused="true"/&gt;
      &lt;item android:drawable="@drawable/ic_accept_disabled" android:state_checked="false"/&gt;
      &lt;item android:drawable="@drawable/ic_success_enabled" android:state_checked="true"/&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>My drawable/ic_success_enabled &amp; disabled are: </p>
  
  <p><img src="https://i.stack.imgur.com/O6VS8.png" alt="enabled"></p>
  
  <p><img src="https://i.stack.imgur.com/rWltw.png" alt="disabled"></p>
  
  <p>The rows for each element in the ExpandableListView </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/RelativeLayout1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:padding="5dp" &gt;
  
      &lt;TextView
          android:id="@+id/title_one_item"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="false"
          android:layout_centerVertical="true"
          android:layout_toLeftOf="@+id/one_item_checkbox"
          android:layout_toRightOf="@+id/one_item_row_image"
          android:padding="10dp"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@color/akdemia_0_black" /&gt;
  
      &lt;com.akdemia.application.CircularImageView
          android:id="@+id/one_item_row_image"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_alignParentLeft="false"
          android:layout_alignParentTop="false"
          android:layout_centerVertical="true"
          android:src="@drawable/placeholder_icon_iphone" /&gt;
  
      &lt;CheckBox
          android:id="@+id/one_item_checkbox"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:background="@drawable/akdemia_checkbox"
          android:button="@null"
          android:focusable="false" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And here is a screen shot of the ExpandableListView, where you guys can see the problem: (All the orange rectangles where added on purpose, just ignore them)</p>
  
  <p><img src="https://i.stack.imgur.com/OEaU3.png" alt="screenshot"></p>
  
  <p>Hope anyone can help me with this, thanks in advance! </p>