title: Unexpected cast to AppCompatButton: layout tag was Button
body: <p>From <a href="https://developer.android.com/reference/android/support/v7/widget/AppCompatButton.html" rel="nofollow">AppCompatButton</a> reference page:</p>
  
  <blockquote>
    <p>This will automatically be used when you use Button in your layouts. You should only need to manually use this class when writing custom views.</p>
  </blockquote>
  
  <p>I'm casting a normal <code>Button</code> to <code>AppCompatButton</code>, so that I can use <code>setSupportBackgroundTintList</code> method:</p>
  
  <pre><code>AppCompatButton button = (AppCompatButton) findViewById(R.id.normalButton);
  button.setSupportBackgroundTintList(ColorStateList.valueOf(tintColor));
  </code></pre>
  
  <p>It builds and runs without any problem, but Android Studio 1.4 gives me the annoying red highlight on casting line:</p>
  
  <blockquote>
    <p>Unexpected cast to AppCompatButton: layout tag was Button</p>
  </blockquote>
  
  <p>Any ideas?</p>