Android TextView with HTML & separator

后端 未结 3 832
感动是毒
感动是毒 2021-02-11 02:47

I have a TextView that is part of a ListView row item. In that TextView, i have some HTML rendered using Html.fromHtml(). I\'m wondering if there is a way to do what is effect

3条回答
  •  礼貌的吻别
    2021-02-11 03:27

    If you can figure out how to create a visual representation of an hr tag with Span objects then you can use the longer form of the fromHtml method and supply an instance of Html.TagHandler that will replace the hr tag with an Editable that represents that hr.

提交回复
热议问题