Android Textview With Html & Separator
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 effectivel
Solution 1:
As you can see in the Html
class source code, Html.fromHtml(String)
does not support all HTML tags. This is a list of allowed HTML tags:
br
p
div
em
b
strong
cite
dfn
i
big
small
font
blockquote
tt
monospace
a
u
sup
sub
So, why don't just use a WebView
instead of a TextView
?
Solution 2:
This is not supported. You can use Box Drawing Characters like ═
(this is not the regular equal sign ═
) from Unicode to achieve something similar. However, your line won't fill the whole space.
Post a Comment for "Android Textview With Html & Separator"