How can I display special characters (like –) in the TextView?

后端 未结 4 2056
再見小時候
再見小時候 2020-12-07 01:47

How can I display special characters(like – ") in a TextView?

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 02:41

    You can use the Html.fromHtml() to handle HTML formatted text into a Spannable that TextView can display.

提交回复
热议问题