Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 spanned from.Html 获取空白图像。有没有办法隐藏它们并只获取文本?
Spanned description = Html.fromHtml(des.get(position));
而不是Html.fromHtml(String source),您可以使用Html.fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler).
Html.fromHtml(String source)
Html.fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler)
实现一个ImageGetter返回空白图像,并传递null给TagHandler.
ImageGetter
null
TagHandler