Defined color under res not usable in code
<p>I defined a white color in mycolors.xml under res/values as below:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt; 
&lt;color name="my_white"&gt;#ffffffff&lt;/color&gt;
&lt;/resources&gt;
</code></pre>

<p>In my code, I set the text color of a TextView as the white color I defined:</p>

<pre><code>TextView myText = (TextView) findViewById(R.id.my_text);
myText.setTextColor(R.color.my_white);
</code></pre>

<p>But the text in the TextView turned out to be a black color.</p>

<p>When I use @color/my_white in layout xml files, it works fine. </p>

<p>I check the generate R.java, and see:</p>

<p>public static final int my_white=0x7f070025;</p>

<p>Did I miss something?</p>

<p>Thanks.</p>
