title: Coloring Buttons in Android with AppCompat
body: <p>Does anyone know how to change the button color?</p>
  
  <p>but one particular button, not all the buttons of the application using the XML.</p>
  
  <blockquote>
    <p>The android:backgroundTint attribute doesn't work on pre-Lollipop even
    with AppCompat library. Only colorButtonNormal from theme works on
    pre-Lollipop.</p>
  </blockquote>
  
  <p>Is that true? what a shame</p>
  
  <p>I'm using this drawable (is a simple green color) with a button, but when I use the button turns out to be higher than the normal button.</p>
  
  <p>this is the file <strong>btn_green.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;item android:state_pressed="true"&gt;&lt;shape&gt;
          &lt;solid android:color="#ff5722" /&gt;
  
          &lt;corners android:radius="4dp" /&gt;
      &lt;/shape&gt;&lt;/item&gt;
  &lt;item android:state_focused="true"&gt;&lt;shape android:shape="rectangle"&gt;
          &lt;solid android:color="#4caf50" /&gt;
  
          &lt;corners android:radius="4dip" /&gt;
  
          &lt;stroke android:width="1dip" android:color="#F0FC00" /&gt;
      &lt;/shape&gt;&lt;/item&gt;
  &lt;item&gt;&lt;shape&gt;
          &lt;solid android:color="#4caf50" /&gt;
  
          &lt;corners android:radius="4dp" /&gt;
      &lt;/shape&gt;&lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>the button is this:</p>
  
  <pre><code>            &lt;android.support.v7.widget.AppCompatButton
              android:id="@+id/btnIngresar"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/btn_green"
              android:text="Hello"
              android:textStyle="bold" /&gt;
  </code></pre>
  
  <p>when i use the drawable, the button is higher than the normal button (without the drawable), i don't know why.</p>