title: setting textColor in TextView in layout/main.xml main layout file not referencing colors.xml file. (It wants a #RRGGBB instead of @color/text_color)
body: <p>I'm trying to set some general colors for a program I'm writing. I created a colors.xml file and am trying to directly reference the colors from the layout.xml file. I believe I'm am doing this correctly however it's giving me the following error:</p>
  
  <pre><code>Color value '@colors/text_color' must start with #
  </code></pre>
  
  <p>Here is my res/values/colors.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;color name="background_color"&gt;#888888&lt;/color&gt;
      &lt;color name="text_color"&gt;#00FFFF&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Here is my res/layout/main.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" 
      android:orientation="vertical"&gt;
  &lt;TextView  
      android:layout_width="fill_parent" 
      android:text="@string/hello" 
      android:layout_height="wrap_content" 
      android:id="@+id/TextView01" 
      android:textColor="@colors/text_color"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I looked at some references on the android developers site: <a href="http://developer.android.com/guide/topics/resources/more-resources.html#Color" rel="noreferrer">More Resource Types : Color</a> and found this code:</p>
  
  <p>Example:XML file saved at res/values/colors.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
     &lt;color name="opaque_red"&gt;#f00&lt;/color&gt;
     &lt;color name="translucent_red"&gt;#80ff0000&lt;/color&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>This application code retrieves the color resource:</p>
  
  <pre><code>Resources res = getResources();
  int color = res.getColor(R.color.opaque_red);
  </code></pre>
  
  <p>This layout XML applies the color to an attribute:</p>
  
  <pre><code>&lt;TextView
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:textColor="@color/translucent_red"
      android:text="Hello"/&gt;
  </code></pre>
  
  <p>I think my two xml files follow this example pretty close - however the only difference is that I haven't used any application code to retrieve the color resource. I don't believe this is necessary (but it is a difference.) I thought I'd see if anyone else had similar problems or a solution? or is this a bug?</p>
  
  <p>I did update all my android sdk (and Eclipse plugin) files last week so I believe them to be the latest.</p>