如何在我的 TextView 中添加项目符号列表?
最佳答案
不支持 ul/li/ol 的难做。幸运的是,您可以将其用作语法糖:
• foo<br/>
• bar<br/>
• baz<br/>
•
是列表项目符号的 html 实体
更多选择在这里http://www.elizabethcastro.com/html/extras/entities.html
Mark Murphy (@CommonsWare) 提供了有关支持哪些标签的更多信息 http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html 用 Html.fromHtml 加载它
((TextView)findViewById(R.id.my_text_view)).setText(Html.fromHtml(myHtmlString));
关于android - 如何将项目符号列表添加到android应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4992794/