android setting different fonts/colors in listview -
i have created listview 3 rows in android. if set different fonts/colors on rows, how achieve this? far have tried different things without sucess. latest try, try set getcomment() italic, have no clue 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 have defined rows in xml layout file. can change color / style of text in textview simple parameters:
<textview ... android:textcolor="#ffff0000" android:textstyle="italic" />
Comments
Post a Comment