1 String format = "<font color='#FC8262'>%s</font>:%s"; 2 String text = String.format(format, item.getUsername(), item.getContent()); 3 holder.content.setText(Html.fromHtml(text));
1 String format = "<font color='#FC8262'>%s</font>:%s"; 2 String text = String.format(format, item.getUsername(), item.getContent()); 3 holder.content.setText(Html.fromHtml(text));
转载于:https://www.cnblogs.com/jinglecode/p/5633785.html