如何加粗文字Android字符串的一部分 [英] how to bold a part of text Android String
本文介绍了如何加粗文字Android字符串的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想加粗一部分一个文本,但我不知道这个我的文本:
i want to bold a part of "" a text but i dont know how this my text:
<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".
推荐答案
您可以使用 SpannableStringBuilder
和新的StyleSpan(android.graphics.Typeface.BOLD)
格式化部分的字符串为粗体。您可以获得帮助 here
You can use SpannableStringBuilder
and new StyleSpan(android.graphics.Typeface.BOLD)
to format a part of the string to be Bold. You can get help here
这篇关于如何加粗文字Android字符串的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文