title: Android: Applying theme directly to CheckBox breaks 'android:onClick'
body: <p>I've been working on this app for a while, and had zero issue with android:onClick's linking up with the relevant method in the activity.</p>
  
  <p>...Then I started messing with themes and my CheckBox onClick's began breaking if I apply the theme directly to them with a 'android:theme="@style/CheckBoxTheme"', to the tune of this:
  <strong>java.lang.IllegalStateException: Could not find a method onLinkCheckboxClicked(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.support.v7.widget.AppCompatCheckBox with id 'chx_sub_all'</strong></p>
  
  <p>If I DON'T use android:theme on the checkBoxes and just let the RF_AppTheme do it's thing, I can alter the checkbox with android:buttonTint just fine. onClicks work no problem. <em>(The reason I'm splitting this into it's own specific theme is because I want to support a lower version, so I have a 'value/styles.xml' that just changes the background color, and a 'values-r21/styles.xml' that uses buttonTint which is version 21+  )</em></p>
  
  <p>From what I can tell, the theme being used is changing the version of CheckBox, so that it tries to look at an activity that isn't my MainActivity, which doesn't exist.</p>
  
  <p>My theme is literally a copy/paste of the theme generated with the project, with more things added to it:</p>
  
  <pre><code> &lt;resources&gt;
  
      &lt;style name="RF_AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name="android:background"&gt;@color/colorBackground&lt;/item&gt;
  
          &lt;item name="android:textSize"&gt;@dimen/text_size&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/colorTextNormal&lt;/item&gt;
  
          &lt;item name="android:buttonTint"&gt;@color/colorPrimaryLight&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="CheckBoxTheme" parent="RF_AppTheme"&gt;
          &lt;item name="android:buttonTint"&gt;@color/colorPrimaryLight&lt;/item&gt;
          &lt;item name="android:gravity"&gt;center_vertical&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>This is the general idea of what my MainActivity looks like, without all the other code copy/pasted over.</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      //onStart and the like above
  
      public void onLinkCheckboxClicked(View view)
      {
         //doing checkbox things here, which never gets called
      }
  }
  </code></pre>
  
  <p>and this is one of my checkboxes</p>
  
  <pre><code>&lt;CheckBox android:id="@+id/chx_sub_all"
                  android:theme="@style/CheckBoxTheme"
                  android:text="@string/check_all"
                  android:textColor="@color/colorTextNormal"
                  android:gravity="center_vertical"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:onClick="onLinkCheckboxClicked"/&gt;
  </code></pre>