title: android - Material button color
body: <p>I am styling my app and want to set the button background color and keep them material-like.</p>
  <h1>I want</h1>
  <p>Set button background color</p>
  <h1>I do</h1>
  <h2>1.</h2>
  <p>I am create style for button, set the <code>colorPrimary</code> and set button style and <code>colorButtonNormal</code>. And it works.</p>
  <pre><code>style name=&quot;AppTheme.Button&quot; parent=&quot;Widget.AppCompat.Button.Colored&quot;&gt;
      &lt;item name=&quot;android:textColor&quot;&gt;@android:color/white&lt;/item&gt;
      &lt;item name=&quot;colorButtonNormal&quot;&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  
  ...
  
  &lt;item name=&quot;android:buttonStyle&quot;&gt;@style/AppTheme.Button&lt;/item&gt;
  &lt;item name=&quot;colorButtonNormal&quot;&gt;@color/colorAccent&lt;/item&gt;
  </code></pre>
  <h2>2.</h2>
  <p>But I want to do one button with different color. I tried to use <code>backgroundTint</code>, but It doesn't work. So I create style:</p>
  <pre><code> &lt;style name=&quot;AppTheme.Button.Wildberries&quot; parent=&quot;Widget.AppCompat.Button.Colored&quot;&gt;
      &lt;item name=&quot;colorButtonNormal&quot;&gt;@color/wildberries&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p>It works on Android 4.x, but on Android 5.x button is still <code>colorAccent</code>.</p>
  <h2>3.</h2>
  <p>I create style-v21 for button:</p>
  <pre><code> &lt;style name=&quot;AppTheme.Button.Wildberries&quot; parent=&quot;@android:style/Widget.Material.Button&quot;&gt;
      &lt;item name=&quot;android:backgroundTint&quot;&gt;@color/wildberries&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  <p><strong>Works in Android Studio:</strong></p>
  <p><a href="https://i.stack.imgur.com/hHhuo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hHhuo.png" alt="IDE" /></a></p>
  <p>Works on Android 4.x too</p>
  <p><strong>But doesn't work on 5.x</strong></p>
  <p><a href="https://i.stack.imgur.com/4XPsm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4XPsm.png" alt="enter image description here" /></a></p>
  <h2>4.</h2>
  <p>Also I tried to use <code>AppCompat.Button</code>:</p>
  <pre><code> &lt;android.support.v7.widget.AppCompatButton
              xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
              app:backgroundTint=&quot;@color/wildberries&quot;
              
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_weight=&quot;1&quot;
              android:text=&quot;Перейти на сайт&quot;
              android:id=&quot;@+id/WildBtn&quot;
              android:textSize=&quot;14dp&quot;
              android:textColor=&quot;@android:color/white&quot;
              android:theme=&quot;@style/AppTheme.Button.Wildberries&quot;
              android:stateListAnimator=&quot;@null&quot; /&gt;
  </code></pre>
  <p>And got nothing:</p>
  <p><a href="https://i.stack.imgur.com/otifw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/otifw.png" alt="enter image description here" /></a></p>
  <p>On Android 4.x device button is still purple, on 5.x still green.</p>
  <p><strong>So, what is the way to set button background color on android 4.x and hihger?</strong></p>