In the strings.xml, I don't think so. You Could use a style to make your job easier.
http://developer.android.com/guide/topics/ui/themes.html Ricardo On Mon, Jan 2, 2012 at 10:57 PM, Glenn <[email protected]> wrote: > 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 -- 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

