title: Programmatically change drawable and shape color in layer list?
body: <p>I have a layer list like this:</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&gt;
          &lt;shape android:shape="oval"&gt;
              &lt;solid android:color="@color/black" /&gt;
          &lt;/shape&gt;
      &lt;/item&gt;
  
      &lt;item
          android:drawable="@drawable/ic_pin"
          android:adjustViewBounds="true"
          android:scaleType="fitXY" /&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>How can I programmatically change the color of the shape as well as the drawable?</p>
  
  <p>For example, how can I change the color to <code>#FF0000</code> and change the drawable to <code>@drawable/ic_globe</code> programmatically?</p>