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 4:12 PM, Romain Guy <[EMAIL PROTECTED]> wrote:
>
>  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 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" <[EMAIL PROTECTED]> wrote:
>  >  > On Fri, Apr 4, 2008 at 3:34 PM, Evan JIANG <[EMAIL PROTECTED]> wrote:
>  >  > > Hi all,
>  >  > >     I find that TextView not support plain text. In APIDemos, there's
>  >  >
>  >  > Sorry, should be "I find that TextView not only support plain text."
>  >  >
>  >  > >  a sample to set a text with <b></b> , <i></i> tags in TextView. But
>  >  > >  does TextView only support these two tags? Is it possible to set
>  >  > >  different font backgroud color in a TextView? My goal is to highlight
>  >  > >  words in a string.
>  >  >
>  >  > >  Best regards,
>  >  > >  Evan JIANG
>  >  >
>  >
>
>
>
>  --
>  Romain Guy
>  www.curious-creature.org
>
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to