Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片加载失败,也不显示黑色占位图 设置了缓存目录 和DefaultImageDownloader #367

Open
hardgit opened this issue Mar 29, 2020 · 0 comments

Comments

@hardgit
Copy link

hardgit commented Mar 29, 2020

1.使用的依赖: implementation 'com.zzhoujay.richtext:richtext:3.0.8'
2.使用方法:
RichText.initCacheDir(this);
RichText
.fromHtml(translation(html))
.imageGetter(new DefaultImageGetter())
.imageDownloader(new DefaultImageDownloader())
.cache(CacheType.none).into(bottom_details_txt);

3.html为:

这是商品详情

< img src="https://pigcms22.pigcms.com/images/000/027/559/202003/5e7d6c4adb196.png" _src="https://pigcms22.pigcms.com/images/000/02/559/202003/5e7d6c4adb196.png"/>

这是商品详情


4.显示效果为:
这是商品详情

< img src="https://pigcms22.pigcms.com/images/000/027/559/202003/5e7d6c4adb196.png" _src="https://pigcms22.pigcms.com/images/000/02/559/202003/5e7d6c4adb196.png"/>

这是商品详情

我感觉是我的html可能有问题,但是ios用webview加载出来了。
后来我用别人html也只是有个黑色占位图,图片还是无法加载出来。
请问是我写的方式不对吗?期待您的回复!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant