title: Crash when clicking button with custom theme
body: <p>I am creating a custom theme for button and using <code>android:onClick</code> event of Button from xml itself to handle the click of Button.</p>
  
  <p>Due to some reason its crashing with below exception </p>
  
  <p><code>java.lang.IllegalStateException: Could not find a method MyOnClick(View) in the activity class android.view.ContextThemeWrapper for onClick handler on view class android.widget.Button with id 'button1'</code></p>
  
  <p>And its working fine if I just remove the theme attribute from the Button, below is my theme for Button</p>
  
  <pre><code>    &lt;style name="ButtonTheme" parent="@android:style/Widget.Button"&gt;
          &lt;item name="android:textColor"&gt;#FF0000&lt;/item&gt;
          &lt;item name="android:shadowColor"&gt;#FF000000&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>And my Button defined in xml as below,</p>
  
  <pre><code>    &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/textView1"
          android:layout_margin="20dp"
          android:onClick="MyOnClick"
          android:theme="@style/ButtonTheme"
          android:text="Button" /&gt;
  </code></pre>
  
  <p>Here is my java code as well,</p>
  
  <pre><code>public void MyOnClick(View view) {
          switch (view.getId()) {
          case R.id.button1:
              getWindow().setStatusBarColor(getResources()
                                     .getColor(R.color.statusBarColor));
              getWindow().setNavigationBarColor(getResources()
                                     .getColor(R.color.statusBarColor));
              break;
  
          default:
              break;
          }
  
      }
  </code></pre>
  
  <p>So, what could be the reason for crashing? I am able to handle the click event if I remove <code>android:theme="@style/ButtonTheme"</code> attribute from Button Widget from xml.</p>