打印html表格,< tr>,< &< a> TextView Android上的标签
我有一个通过API接收HTML作为JSON的聊天应用程序。每个聊天消息都在文本视图中显示HTML,但是我需要显示表格和标签。我尝试使用html.fromhtml()
函数和图像的imagegetter尝试,但是我找不到显示表标签的方法。
我无法使用WebView,因为这意味着每个消息显示WebView(这不是很高效)。
提前致谢。
I have a chat app that receives HTML as JSON through an API. Each chat message displays the HTML in a TextView, however I need to display Tables, and tags. I have tried with Html.fromHtml()
function and an ImageGetter for the images, however I can't find the way to display the Table tags.
I cannot use a WebView because that would imply displaying a webview for every message (which isn't very efficient).
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
fromhtml()
不支持< table
和相关标签。您的选择是:TableLayout
。fromHtml()
does not support<table>
and related tags. Your choices are:TableLayout
in your Android app.