title: How to change the color and radius of button with single drawable file?
body: <p>I want to change the Color and Radius of my button with single drawable file. In the Drawable file I select the color and radius for my button.But when I call it in my MainActivity.XML it is only changing the radius of Button not the color of my Button Please Help.</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;shape  android:shape=&quot;rectangle&quot; xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;corners android:radius=&quot;50dp&quot;/&gt;
      &lt;solid android:color=&quot;@color/red&quot;/&gt;
  </code></pre>
  
  <pre><code>    &lt;Button
      android:id=&quot;@+id/button&quot;
      android:layout_width=&quot;wrap_content&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:text=&quot;LOGIN&quot;
      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintHorizontal_bias=&quot;0.498&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;
      android:background=&quot;@drawable/button&quot; /&gt;
  </code></pre>