title: How to set TopLeftRadius and BottomLeftRadius for a GradientDrawable programmatically in Android
body: <p>I have a ShapeDrawable . I want to set the CornerRadius (TopLeftRadius &amp; BottomLeftRadius) programmatically. </p>
  
  <p>Below is my xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
  &lt;item android:top="5dp"
      android:bottom="5dp"&gt;
  
      &lt;shape android:shape="rectangle"&gt;
          &lt;corners android:topLeftRadius="20dp"
              android:bottomLeftRadius="20dp"/&gt;
  
          &lt;solid android:color="#A2D368"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>