title: How to set a gradient background to a Material Button?
body: <p>I'm currently using this code but the background is not changing.It is still showing accent-color as background.</p>
  
  <pre><code>&lt;com.google.android.material.button.MaterialButton
      android:id="@+id/materialButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Hello"
      app:cornerRadius="32dp"
      android:background="@drawable/gradiant_blue"/&gt;
  </code></pre>
  
  <p>gradiant_blue.xml</p>
  
  <pre><code>&lt;shape
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:shape="rectangle"&gt;
  
     &lt;gradient
         android:angle="-45"
         android:startColor="#2979FF"
         android:endColor="#7C4DFF"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>I'm currently using </p>
  
  <blockquote>
    <p>Material Components version : 1.0.0-rc02</p>
  </blockquote>