I have a scrollable TextView that has texts like this
...
Tom: sometext
Jack: anothertext
Sam: something
...
So I get this data as a JSON object, then I seperate the keys and values, then adding to a string. Then I set the text of TextView as this final string.
What I want is, I would like to make different colors for Tom, Jack, Sam
. I have found HTML library but all solutions changes the whole TextView. I want to change specific parts of the text and since I get a JSON data first and I'm adding this JSON values to a string part by part, I thought I can do something like this string += <HTML color change> JSON["key"] + JSON["anotherKey"]
.
Is it possible to change specific parts of the text of a TextView object?