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:

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

Source: http://tumble.mlcastle.net/post/17700903735/html-like-tags-in-android-string-resources

24 comments:

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

jowdjbrown said...

New site is solid. A debt of gratitude is in order for the colossal exertion.
二重

Gamer said...

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. 9apps download

Ali Khan said...

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You upload to instagram from pc

Ali Khan said...

Its really awesome to see these kind of posts which is really helpful for the people. Keep up the awesome work buddy instagram online

Ali Khan said...

Very informative post thanks for share this with us i highly appreciate you for this information thanks once again for sharing information like this Very informative post Thanks for sharing with you. instagram online viewer

Unknown said...

I found your blog very use full. I have subscirbed to your mailing list.

yesmovies
Pocket Mortys Recipes
Pocket Mortys Recipes

chansara said...

This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. ACMarket

Android said...

Here you Can Download Stock Note 4 Firmware Free With Full Speed

Galaxy Note 4 Firmware

francis beth said...

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. Action Link Wireless

BorkenSKY said...

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. Emus4u

StephaniebAlonzoas said...

Instagram

Media Publisher said...

The Avengers 2018 full watch online
Avengers movie stream Online free

Shining star said...

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. AirShou iOS 11

Core vpro said...

I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! iFile Download

2009 DREAM said...

Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post! Download Cydia iOS 11.3

Elizabeth J. Neal said...

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. outdoor water fountain

Elizabeth J. Neal said...
This comment has been removed by the author.
Vikas Pandey said...

http://9apps.live/

http://9appsapkapp.com/

http://9appsinstalldownload.co.in/

http://whatsappdownload.co.in/

http://9appsapk.org.in/

http://www.9apps.games/

http://9appsinstall.org/

http://9appsdownloadfree.in/

Vikas Pandey said...

how to make a paper plane

9apps download

guest posting sites

birthday cards images

good night kiss images for lover

birthday cards images

birthday images

birthday cake images

Vikas Pandey said...

9apps apk

sad quotes about love

best hip hop clubs in nyc

how to make candle wicks

wedding anniversary wishes images

funny happy birthday meme

gud morning images

good morning wednesday images