title: Programmatically change color of shape in layer list
body: <p>How can I programmatically change the color (<code>#000000</code>) of a shape in a layer list?</p>
  
  <p>Here is my layer list:</p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;solid android:color="#000000" /&gt; // CHANGE THIS COLOR
          &lt;/shape&gt;
      &lt;/item&gt;
      &lt;item android:left="5dp"&gt;
          &lt;shape android:shape="rectangle"&gt;
              &lt;solid android:color="@color/bg" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>