In one textview I'm trying to separate text stylings on different words.
So far I have:
textview.setText(Html.fromHtml("<i><small><font color=\"c5c5c5\">" + "Competitor ID: " + "</font></small></i>" + "<font color=\"47a842\">" + compID + "</font>"));
Basically, I'm saying I want "Competitor ID:"
to be italic, small, and grey.
And I want that string compID
to be normal sized, not italic, and green.
The italic and small portions of the code work perfectly, but for some reason, the entire text view has grey text, rather than just "Competitor ID:"
.
Any ideas?