我怎样才能显示特殊字符(如&安培; ndash的;)在TextView中? [英] How can I display special characters (like –) in the TextView?
本文介绍了我怎样才能显示特殊字符(如&安培; ndash的;)在TextView中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能显示特殊字符(如&放大器; ndash的;&安培; QUOT;
)?在一个TextView
How can I display special characters(like – "
) in a TextView?
推荐答案
您可以使用 Html.fromHtml()
来处理HTML格式的文本到 Spannable
的的TextView
可以显示。
You can use the Html.fromHtml()
to handle HTML formatted text into a Spannable
that TextView
can display.
这篇关于我怎样才能显示特殊字符(如&安培; ndash的;)在TextView中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文