Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 android.widget.TextView 中设置推文,并且 & 最终格式化为
&
我应该如何格式化才能正确显示 & 等特殊字符?
使用Html.fromHtml():
Html.fromHtml()
text.setText(Html.fromHtml("&"));