-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML tables rendering issue #10
Comments
Hi, the issue has been fixed in this pull request #11 that will be merged soon. |
Great :) I will let you know how that works out for me. Thanks a lot for the quick fix. On a side note, how do I get the latest build from Gradle as I don't see any release on this page? So far I have been using the instructions on this page: https://android-arsenal.com/details/1/6563#!package Is there a better way? |
Just check the readme section https://github.com/SysdataSpA/SDHtmlTextView#usage dedicated to usage and installation |
Thank you. Problem solved. As for the additional lines and space at the bottom, I simply removed both the "builder.append("\n");" in the TableHandler.handleTagNode method and they are gone. I have the same issue with lists, I guess it can be resolved the same way. |
With the lists I don't see any issue in my sample app. |
Here are 2 screenshots. One for tables, one for lists. On each screenshot you have a webview, a textview using the native Html.fromHtml method and a textview using this library. HTML code: HTML code: |
Hello @sranieri. An issue I encountered with your fix is that if you reuse the htmlspanner for multiple values, the first row will always be centered if it has ever been once. |
Hello,
HTML tables do not seem to be correctly rendered.
I see 2 major issues when you have more than 1 line:
There is also an issue where table header is not centered horizontally.
In the screenshot below, you will see 3 components in that order: a webview, a textview using the native HTML.fromHtml method, a text view using htmlSpanner.
Otherwise the library works great, but without tables support unfortunately webview is the only alternative and it's not as fast and lightweight as a TextView.
The text was updated successfully, but these errors were encountered: