Android TextView with HTML & separator

后端 未结 3 1040
栀梦
栀梦 2021-02-11 02:55

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:31

    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.

提交回复
热议问题