Change <layer-item> items by Java code
<p>I have the following XML:</p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;

&lt;item android:id="@+id/customPlayerProgressBg"&gt;
    &lt;shape&gt;
        &lt;gradient
                android:startColor="#FF999999"
                android:endColor="#FF999999"
        /&gt;
    &lt;/shape&gt;
&lt;/item&gt;

&lt;item android:id="@+id/customPlayerProgressSecondary"&gt;
    &lt;clip&gt;
        &lt;shape&gt;
            &lt;gradient
                    android:startColor="#FF5C3C68"
                    android:endColor="#FF5C3C68"
            /&gt;
        &lt;/shape&gt;
    &lt;/clip&gt;
&lt;/item&gt;
&lt;item
    android:id="@+id/customPlayerProgress"
&gt;
    &lt;clip&gt;
        &lt;shape&gt;
            &lt;gradient
                android:startColor="#FF5C3C68"
                android:endColor="#FF5C3C68"
            /&gt;
        &lt;/shape&gt;
    &lt;/clip&gt;
&lt;/item&gt;

&lt;/layer-list&gt;
</code></pre>

<p>I want to change the "customPlayerProgress" and the "customPlayerProgressSecondary" by Java code. How can that be accomplished?</p>
