Show
  • in android textview

前端 未结 7 556
伪装坚强ぢ
伪装坚强ぢ 2020-12-14 16:15

I have String with ul and li in it. And I am trying to show them in HTML formatting in textview.
textView.setText(Html.fromHtml(myHtmlText));
But tex

7条回答
  •  遥遥无期
    2020-12-14 16:39

    see HTML Tags Supported By TextView both ul and li tags are not Supported by android.text.Html class.

    SOLUTION : you can display these tags using WebView or by TagHandler

    for more help see this post:

    Html List tag not working in android textview. what can i do?

提交回复
热议问题