Changing a color resource at runtime
<p>Is it possible to change a color from res - colors.xml :</p>

<pre><code>&lt;color name="transparent_color"&gt;#00000000&lt;/color&gt;
</code></pre>

<p>On runtime?</p>

<p>Reason for changing it is that, on my extended EditText I set my backgroundresouce like this:</p>

<pre><code>        setBackgroundResource(R.drawable.edittext_rounded_corners);
</code></pre>

<p>edittext_rounded_corners.xml looks like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- res/drawable/edittext_rounded_corners.xml --&gt;
&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:state_focused="true" android:state_pressed="true"&gt;&lt;shape&gt;
            &lt;solid android:color="#FF8000" /&gt;
            &lt;stroke android:width="2.3dp" android:color="@color/referenceFrame" /&gt;
            &lt;corners android:radius="8dp" /&gt;
        &lt;/shape&gt;&lt;/item&gt;
    &lt;item android:state_focused="false" android:state_pressed="true"&gt;&lt;shape&gt;
            &lt;solid android:color="#FF8000" /&gt;
            &lt;stroke android:width="2.3dp" android:color="#FF8000" /&gt;
            &lt;corners android:radius="8dp" /&gt;
        &lt;/shape&gt;&lt;/item&gt;
    &lt;item android:state_focused="true" android:state_pressed="false"&gt;&lt;shape&gt;
            &lt;solid android:color="#FFFFFF" /&gt;
            &lt;stroke android:width="2.3dp" android:color="#FF8000" /&gt;
            &lt;corners android:radius="8dp" /&gt;
        &lt;/shape&gt;&lt;/item&gt;
    &lt;item android:state_focused="false" android:state_pressed="false"&gt;&lt;shape&gt;
            &lt;gradient android:angle="270" android:centerColor="#FFFFFF" android:endColor="#FFFFFF" android:startColor="#F2F2F2" /&gt;
            &lt;stroke android:width="0.7dp" android:color="#BDBDBD" /&gt;
            &lt;corners android:radius="8dp" /&gt;
        &lt;/shape&gt;&lt;/item&gt;
    &lt;item android:state_enabled="true"&gt;&lt;shape&gt;
            &lt;padding android:bottom="4dp" android:left="4dp" android:right="4dp" android:top="4dp" /&gt;
        &lt;/shape&gt;&lt;/item&gt;

&lt;/selector&gt;
</code></pre>

<p>And I need a way to make the @Color/referenceFrame red, when I have an error in it. Have the error handling done already, just need a way to change reference frame</p>
