我有一个ImageView和一个用Glide加载的图像:
Glide.with(ImageView.getContext())
.load(url)
.dontAnimate()
.placeholder(R.drawable.placeholder)
.signature(stringSignature)
.into(new GlideDrawableImageViewTarget(ImageView) {
@Override
public void onResourceReady(GlideDrawable drawable,GlideAnimation anim) {
super.onResourceReady(drawable,anim);
progressBar.setVisibility(View.GONE);
}
});
当我想刷新图像时,我只用新签名再次运行相同的代码.它工作得很好,但是当新的加载开始时,可见图像立即消失.
题
Is possible keep the image in ImageView and replace it after new image is downloaded?
最佳答案
原文链接:https://www.f2er.com/android/431241.html