Colour resource ID returning wrong value
<p>I am trying to set the text colour programatically from a colour resource during onCreate and am getting some wierd results.</p>

<p>I have a colour resource defined in res\colors.xml:</p>

<pre><code>&lt;resources&gt;

    &lt;color name="wheelFill"&gt;#C0FFFFFF&lt;/color&gt;

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

<p>my activity then uses the following code to retrieve the colour:</p>

<pre><code>int WheelColour = getResources().getColor(R.color.wheelFill);
</code></pre>

<p>Finally I assign it to a Paint:</p>

<pre><code>mBackgroundPaint.setColor(WheelColour);
</code></pre>

<p>When I run my application the colour does not get set an I get a log message from the getColor line claiming that "Color value 'List' must start with #".  'List' is the value of one of my string resources so clearly something is getting messed up there.</p>

<p>If I bypass the resource and use:</p>

<pre><code>int WheelColour = Color.argb(0xC0, 0xFF, 0xFF, 0xFF);
</code></pre>

<p>Everything works correctly so it has to be the getColor call but I can't see what's wrong with it. (I have tried explicitly using a context which made no difference).</p>

<p>Has anybody else come across this or sucessfully managed to set paint colours from colour resources?</p>
