Show
  • in android textview

前端 未结 7 514
伪装坚强ぢ
伪装坚强ぢ 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:59

    According to the answer below, you can not use every HTML tag here;

    https://stackoverflow.com/a/3150456/2275962

    But, sure, there ise a way of showing bullets in Android TextView. You can replace <li> tags with &#149; (which is HTML code for bullet).

    If you want to try other list icons, use the preferred one from the table is this link;

    http://www.ascii-code.com/

    0 讨论(0)
提交回复
热议问题