title: android checkbox drawable crashing app
body: <p>i'm kinda new to android and i am following other questions and answers on stack overflow and i feel like i am getting close, But i can't get it to work. 
  when i tried it crashes my app.</p>
  
  <p>just to test it's functionality i am using </p>
  
  <p><img src="https://i.stack.imgur.com/Ay58y.png" alt="Image"></p>
  
  <p>and </p>
  
  <p><img src="https://i.stack.imgur.com/4Ot8r.png" alt="Image Checked"></p>
  
  <p>and my code has a cb_selector in a 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_checked="true"
          android:drawable="@drawable/checkbox_checked"
          android:color="#000000" /&gt;
      &lt;!-- checked --&gt;
      &lt;item
          android:state_checked="false"
          android:drawable="@drawable/checkbox_empty"
          android:color="#000000"/&gt;
      &lt;!-- unchecked --&gt;
      &lt;item
          android:state_focused="true"
          android:color="#000000"/&gt;
      &lt;!-- on focus --&gt;
      &lt;item android:color="#000000"/&gt;
      &lt;!-- default --&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>and my checkbox is:</p>
  
  <pre><code>    &lt;CheckBox
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/ownit_text"
          android:id="@+id/switch_ownit"
          android:layout_marginTop="10dp"
          android:layout_marginBottom="10dp"
          android:layout_toEndOf="@id/imageView_amiibo"
          android:layout_toRightOf="@+id/imageView_amiibo"
          android:layout_below="@+id/textView_amiiboName"
          android:background="@drawable/cb_selector"/&gt;
  </code></pre>
  
  <p>on the android ADK website it uses <code>android:textColor=""</code> and <code>android:background=""</code> on stack overflow someone has said to use <code>android:button=""</code></p>
  
  <p>when i use background or button it crashes. and when i use textcolor it just affects the checkboxes label and does not change the drawable. </p>