android - Any alternative faster than html.fromhtml for applying html styled text to textviews? -
As the title, I'm exploring a faster option than this:
textviewXy setText (Html.fromHtml (random_html_styled_string)); This approach is really slow if you need to apply it to multiple text views and I'm looking for other ways (perhaps a support library), compared to the other ( I try them, but they are not used as the work line breaks down unless you have a spannableStringBuilder with my apps architecture ...
I found an "identical" question, but I Not decoding out of HTML It is not possible at this time to allow the use of string, I just want a fast API to implement it in my text view ..
Thanks in advance
I'm looking for another method (perhaps a support library)
Ask for off-site resource recommendations, such as library, off-topic for stack is considered overflow.
All of the spannables Interpretation other
You spans to format a TextView to use no other characters.
I tried them, but they do not work
Given that, they clearly work.
I just want to apply it to a fast API My TextView
You can use to determine what your problem is Tracyview for
You are also welcome to create your own HTML-to-
Spannableconverter whichHtml.fromHtml () doesdoes the stock implementation In comparison you can find a way to do it faster. You can also see if anyone else has any of these & mdash; There is nothing available to me, I do not know about it.Depending on how you are using this content, you can use HTML as
Spannableobject byHtml.fromHtml (). If you have one of these bunch, you can consider that work in the background thread, so that the main application can not tie the thread.
Comments
Post a Comment