代码:
StringBuilder sb = new StringBuilder();
sb.append(String.format("<b>%s. %s</b> %s", Integer.toString(id), name, description));
derp.setText(sb.toString());
返回:
&LT; B个ID。命名&LT; / B个描述
通缉结果:
ID。名称描述
答案 0 :(得分:3)
请改为尝试:
derp.setText(Html.fromHtml(sb.toString()));