title: Change oval shaped button background programmatically
body: <blockquote>
    <p>I want to change <code>Button</code> background color programmatically the button
    shape(oval). I have changed in xml. </p>
  </blockquote>
  
  <p><strong>This is the code:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
          android:shape="rectangle"&gt;
          &lt;corners android:radius="20dp"/&gt;  
          &lt;solid android:color="#f9f9f9"/&gt;  
          &lt;stroke
              android:width="2dp" android:color="#FFFF4917" /&gt; 
              &lt;/shape&gt;
  </code></pre>
  
  <p>I am using <code>Button.backgroundColor(COLOR.RED)</code> to change this <code>Button</code> but problem is that it's changing button color, but it is making my button rectangular shape(default shape of a button)</p>