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));
时间: 2024-10-16 10:31:36
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));