在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Pixplicity/HtmlCompat开源软件地址:https://github.com/Pixplicity/HtmlCompat开源编程语言:Java 100.0%开源软件介绍:HtmlCompatCompaibility library for Android's Html class. DEPRECATEDGoogle has introduced the official HtmlCompat library as part of AndroidX. This library will no longer be updated or maintained; please use the official library. Why?Nougat introduced improvements to the HtmlCompat attempts to address this problem by providing developers with a compatibility library. All logic for converting HTML is enclosed within this library and can be bundled within an app. This means that the presentation is agnostic to the version of Android of the device. How can I use it?Download the latest AAR or grab from Bintray using Gradle:
Important: Specify the latest version from Bintray as Sample code: Spanned fromHtml = HtmlCompat.fromHtml(context, source, 0);
// You may want to provide an ImageGetter, TagHandler and SpanCallback:
//Spanned fromHtml = HtmlCompat.fromHtml(context, source, 0,
// imageGetter, tagHandler, spanCallback);
textView.setMovementMethod(LinkMovementMethod.getInstance());
textView.setText(fromHtml); What’s supported?All the latest functionality from the current
The following CSS inline styles are supported:
All CSS color declarations as defined here are supported. What’s added?A few new features have been added to the interface to ease the life of the developer:
What’s next?
This library has become obsolete, in favor of the official HtmlCompat library as part of AndroidX. This library will no longer be updated or maintained; please use the official library. License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论