Probably a stupid question from a newbie but here goes...

Can I set a color for text in the strings.xml file to be used in the
layout xml file?

ie... set color in strings.xml
          <string name="goldText">#ffdf38</string>
then reference in the layout file "main.xml"
          <TextView android:id="@+id/textViewGold"
                       android:layout_width="wrap_content"
                       android:textColor="@string/goldText"/>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to