有没有其他方式可以在Android TextView中显示Html代码而不使用webview和Html.fromHtml()方法? [英] Is there any other way to display Html code in Android TextView without using webview and Html.fromHtml() method?

查看:775
本文介绍了有没有其他方式可以在Android TextView中显示Html代码而不使用webview和Html.fromHtml()方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索了很多。我必须在Textview中显示Html代码。但在Textview中使用的大多数是Html.fromHtml(source)。但是这个方法不支持所有的html标签。只有少数由Html.fromHtml()支持的标签。



因为我需要appy所有css和所有html标签支持。



我想在Textview中显示html代码而不使用Webview。是否有任何其他方式来实现此功能。

解决方案

此链接为您提供此解决方案的正确答案,而无需使用web
视图,并且它还支持更多的html标记,如表格,图像和列表。

android-summernote


I have searched lot. I have to display Html code in Textview. But Mostly Html.fromHtml(source) used in Textview. But this method is not supported all html tags. Only few tags supported by Html.fromHtml().

Because i need to appy all css and all html tags support.

I want to display html code in Textview without using Webview. Is there any other way to implement this functionality.

解决方案

This link give you the correct answer for this solution without using web view and also it supports more html tags like table,image and list.

android-summernote

这篇关于有没有其他方式可以在Android TextView中显示Html代码而不使用webview和Html.fromHtml()方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆