I am trying to add lines with different colors to my TextView using html tags.
For whatever reason,
Html.fromHtml(\"
My answer involves guesswork about your code, but here goes:
When you use the font tag: DO NOT include an alpha channel so that your hex string looks like "#ff123456". If you use Integer.toHexString(), you will have an alpha channel in that result.
It worked when i used substring(2) on my hex string from rescource.
To sum up:
text.setText(Html.fromHtml("text"));
will work, but:
text.setText(Html.fromHtml("text"));
won't!