Dear All,

I am using a single character style in multiple text
locations. I simply did the following:

        output = new ForegroundColorSpan(OUTPUT_COLOR);

And then whenever a portion of my text has to
have the above character style, I simply use the
wrap() method to share the style:

        getEditableText().setSpan(CharacterStyle.wrap(output),
           start, start + str.length(),
           Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);

Now I don't find a method setForgroundColor in the
ForgroundColorSpan class. How can I change the color?
How can I notify my text?

Bye

--
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

Reply via email to