Thursday, March 15, 2012

String resources with font color

To have a TextView show a string resource with colors use a "font" tag with attribute fgcolor, NOT color:

  <string name="some_text">this is <font fgcolor="#ffff0000">red</font></string>



Anonymous said...

Not working.

Anonymous said...

Oh, sorry.

It actually works. I forgot the extra ff in the color.

Anonymous said...

It is working thank u bro

Elizabeth J. Neal said...

And as any suburbanite who has had a peaceful barbecue interrupted by the whine of a small engine can tell you, the tool to finish the job is the string trimmer. weed wacker reviews 2016