title: Set android shape color programmatically
body: <p>I am editing to make the question simpler, hoping that helps towards an accurate answer.</p>
  
  <p>Say I have the following <code>oval</code> shape:</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="oval"&gt;
      &lt;solid android:angle="270"
             android:color="#FFFF0000"/&gt;
      &lt;stroke android:width="3dp"
              android:color="#FFAA0055"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>How do I set the color programmatically, from within an activity class?</p>