[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Dan U.
It also supports u/u, but I don't think there's any way to set a color only for specific words in the string without implementing your own TextView. Either that or string together multiple textviews with appropriate colors, but that probably isn't the best idea. On Apr 4, 12:35 am, Evan JIANG

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Romain Guy
I believe it is possible to do this by using a Spannable and BackgroundColorSpan. You can take a look at the documentation for SpannableStringBuilder if you want more information. On Fri, Apr 4, 2008 at 1:04 AM, Dan U. [EMAIL PROTECTED] wrote: It also supports u/u, but I don't think there's

[android-developers] Re: How to set rich text in TextView?

2008-04-04 Thread Evan JIANG
Thank you for your reply. Is there any examples to show how to use SpannableString. In the method like SpannableStringBuilder.setSpan(Object what, int start, int end, int flags) , I've no idea what type of Object of the parameter what is needed. Best regards, Evan JIANG On Fri, Apr 4, 2008 at