如何项目符号列表添加到Android应用程序? [英] How to add bulleted list to android application?

查看:147
本文介绍了如何项目符号列表添加到Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Google搜索我的问题,但没有工作的答​​案提供。如何添加项目符号列表,我的TextView。

I have googled my question but there is not working answer provided. How do add a bulleted list to my textview.

推荐答案

很难做到的UL /李/ OL不支持。幸运的是,你可以使用它作为语法糖:

Tough to do as ul/li/ol are not supported. Fortunately you can use this as syntactic sugar:

&#8226; foo<br/>
&#8226; bar<br/>
&#8226; baz<br/>

&放大器;#8226; 是一个项目符号列表的HTML实体 更多的选择在这里<一href="http://www.elizabethcastro.com/html/extras/entities.html">http://www.elizabethcastro.com/html/extras/entities.html

&#8226; is the html entity for a list bullet more choices are here http://www.elizabethcastro.com/html/extras/entities.html

多标签支持马克·墨菲提供哪些(@CommonsWare) <一href="http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html">http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html 加载了Html.fromHtml

more about which tags are supported provided by Mark Murphy (@CommonsWare) http://commonsware.com/blog/Android/2010/05/26/html-tags-supported-by-textview.html Load that up with Html.fromHtml

((TextView)findViewById(R.id.my_text_view)).setText(Html.fromHtml(myHtmlString));

这篇关于如何项目符号列表添加到Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆