How to use html.fromhtml in Android

Html.fromhtml in Android

In Android, there is an easily forgotten html.fromhtml method, which means that strings in text boxes can be HTML formatted. There are still many supported methods,

But note that you should use <! In string. XML-- CDATA -- > de escapes, for example:

A large number of HTML tags are used above. They are used in Java code as follows:

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>