title: How to change background color of drawable shape in custom adapter
body: <p>I have a button in my custom listview item for which I am using following drawable xml file:</p>
  
  <p>rounded_corner.xml</p>
  
  <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="120dp" android:layout_height="100dp"&gt;
  
      &lt;stroke
          android:width="1dp"
          android:color="#FFFFFF" /&gt;
  
      &lt;solid android:color="#002832" /&gt;
  
      &lt;padding
          android:left="1dp"
          android:right="1dp"
          android:top="1dp" /&gt;
  
      &lt;corners android:radius="5dp" /&gt;
  
  &lt;/shape&gt;
  </code></pre>
  
  <p>I have used "#002832" color for that drawable. Now, I want to change the color of drawable file programmatically. How can i do this?</p>
  
  <p><strong>PLEASE STOP MARKING AS DUPLICATE WITHOUT UNDERSTANDING THE QUESTION.</strong> </p>
  
  <ol>
  <li><p>I have checked @Ganesh Pokele SO link anf which totally different.</p></li>
  <li><p>I have checked @bizzard provided link but could not solve my issue.</p></li>
  </ol>