What options I have to show a sentence parts with different color?
Posted
by Pentium10
on Stack Overflow
See other posts from Stack Overflow
or by Pentium10
Published on 2010-05-26T10:51:01Z
Indexed on
2010/05/26
11:01 UTC
Read the original article
Hit count: 107
android
|android-sdk
I have a longer sentence >200 characters. I need to show on the screen having parts of them in different color, like highlighting search results, each with different color. The text should auto wrap with screen width, and have no break sections between parts. I meant with this that I can put sections on a new line. They will have to continue the previous section, only wrap when the screen is off.
The best would be an EditText, as I need to allow editing also, but I am wondering I am able to change the color of various sentence parts, or just as a whole.
What do you think, with what UI elements can I achieve this view?
© Stack Overflow or respective owner