title: Android: Solid color on button not working
body: <p>API 22. I want to set a border radius for my button, so I did this: <a href="https://stackoverflow.com/questions/6054562/how-to-make-the-corners-of-a-button-round">How to make the corners of a button round?</a>
  (I tried out the answer that is ticked as correct). <a href="https://stackoverflow.com/questions/32671004/how-to-change-the-color-of-a-button">How to change the color of a button?</a>
  None of the methods here work either.
  I used to set the background color of my button with android:backgroundTint. That was the only method working. Unfortunately, when I link the file to my button via android:background=&quot;@drawable/roundbutton&quot;, the color that I selected via android:backgroundTint wont work. As well as the solid color I defined int the drawable/roundbutton. Strangely the border Radius works:
  My Code in activity_main.xml:</p>
  <pre><code>&lt;Button
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:text=&quot;@string/signinotherbutton&quot;
      android:background=&quot;@drawable/roundbutton&quot;
      android:backgroundTint=&quot;@color/grey&quot;
      android:textColor=&quot;@color/white&quot;
      android:textAllCaps=&quot;false&quot;/&gt;
  </code></pre>
  <p>My Code for the drawable/roundbutton.xml:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &gt;
      &lt;item android:state_pressed=&quot;true&quot; &gt;
          &lt;shape android:shape=&quot;rectangle&quot;  &gt;
              &lt;corners android:radius=&quot;3dip&quot; /&gt;
              &lt;solid android:color=&quot;@color/grey&quot;/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:state_focused=&quot;true&quot;&gt;
          &lt;shape android:shape=&quot;rectangle&quot;  &gt;
              &lt;corners android:radius=&quot;3dip&quot; /&gt;
              &lt;solid android:color=&quot;@color/grey&quot;/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item &gt;
          &lt;shape android:shape=&quot;rectangle&quot;  &gt;
              &lt;corners android:radius=&quot;3dip&quot; /&gt;
              &lt;solid android:color=&quot;@color/grey&quot;/&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/selector&gt;
  </code></pre>
  <p>Result: Button with the Radius I defined, but with the default color (ca. purple)
  No, @color/grey is definitely grey, not purple.
  Thanks for all answers</p>