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

Glide4.0加载为什么没有图片呢? #52

Open
jwzywanasnli opened this issue Jan 9, 2018 · 1 comment
Open

Glide4.0加载为什么没有图片呢? #52

jwzywanasnli opened this issue Jan 9, 2018 · 1 comment

Comments

@jwzywanasnli
Copy link

第一次进入没有图片,退出再进才会显示。这是什么问题啊

@renhuan
Copy link

renhuan commented Jan 11, 2018

试试glide异步加载,我这不是4.0的,你根据4.0特性找到SimpleTarget这个类重写方法即可
Glide.with(this) .load(url) .placeholder(R.drawable.loading) .into(new SimpleTarget<GlideDrawable>() { @Override public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) { imageView.setImageDrawable(resource); } });

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

2 participants