我想将“”文本的一部分加粗,但我不知道我的文本如何:
<string name="apropos"> Le projet Marocherche : Bâtir au cœur d un portail professionnel, destiné aux entreprises marocaines, une création conçue par des "professionnels pour des professionnels".
就像这样使用 -
String sourceString = "<b>" + id + "</b> " + name;
mytextview.setText(Html.fromHtml(sourceString));
如果你想编辑 strings.xml 中的字符串,你可以这样做 -
<resource>
<string name="styled_welcome_message">We are <b>so</b> glad to see you.</string>
</resources>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)