I have created a listview with 3 rows in Android. If I would like to set different fonts/colors on the rows, how do I achieve this? So far I have tried different things without any sucess. This is my latest try, I try to set the getComment() to italic, but honestly I have no clue what I am doing :D. Please help!
public String toString()
{
return this.getAlias() + " " + this.dateFormat.format(this.getDate()) + "\n" + (Html.fromHtml("<i>" + this.getComment() + "</i>" + "<br />"));
}
I assume you have defined your rows in a xml layout file. You can change the color / style of the text in a TextView with some simple parameters: