Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
代码:
StringBuilder sb = new StringBuilder(); sb.append(String.format("<b>%s. %s</b> %s", Integer.toString(id), name, description)); derp.setText(sb.toString());
回报:
<b>身份证。名称</b>说明
想要的结果:
ID。名称描述
试试这个:
derp.setText(Html.fromHtml(sb.toString()));