Is to possible to have changing text color of multiple text strings in the same TextView? Using Html.fromHtml is not working:
textViewPrevChat.append("\n"+Html.fromHtml("<b>Bold string </b>")+somestringhere);
It is printing whole thing in bold. Also, the color attribute in <p> is not working.
You should use a SpannableString for this. Here is an example method implementing this:
-This example changes the color of one half of a string, and adjusts the size of another section of the String: