We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to Clear cached images ? Need call Glide.get(this.activity).clearDiskCache(); and Glide.get(this.activity).clearMemory(); in
Glide.get(this.activity).clearDiskCache();
Glide.get(this.activity).clearMemory();
public Object instantiateItem(ViewGroup container, int position) { View itemView = this.mLayoutInflater.inflate(layout.pager_item, container, false); final ImageView imageView = (ImageView)itemView.findViewById(id.iv); Glide.with(this.activity).load((String)this.images.get(position)).listener(new RequestListener() { public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) { return false; } public boolean onResourceReady(GlideDrawable resource, String model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) { ViewPagerAdapter.this.mPhotoViewAttacher = new PhotoViewAttacher(imageView); ViewPagerAdapter.this.mPhotoViewAttacher.setOnPhotoTapListener(new OnPhotoTapListener() { public void onPhotoTap(View view, float x, float y) { if(ViewPagerAdapter.this.isShowing) { ViewPagerAdapter.this.isShowing = false; ViewPagerAdapter.this.toolbar.animate().translationY((float)(-ViewPagerAdapter.this.toolbar.getBottom())).setInterpolator(new AccelerateInterpolator()).start(); ViewPagerAdapter.this.imagesHorizontalList.animate().translationY((float)ViewPagerAdapter.this.imagesHorizontalList.getBottom()).setInterpolator(new AccelerateInterpolator()).start(); } else { ViewPagerAdapter.this.isShowing = true; ViewPagerAdapter.this.toolbar.animate().translationY(0.0F).setInterpolator(new DecelerateInterpolator()).start(); ViewPagerAdapter.this.imagesHorizontalList.animate().translationY(0.0F).setInterpolator(new DecelerateInterpolator()).start(); } } public void onOutsidePhotoTap() { } }); return false; } }).into(imageView); container.addView(itemView); return itemView; }
or add flag for don't use cache in Glide.with().load().diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true).into()
Glide.with().load().diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true).into()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How to Clear cached images ?
Need call
Glide.get(this.activity).clearDiskCache();
and
Glide.get(this.activity).clearMemory();
in
or add flag for don't use cache in
Glide.with().load().diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true).into()
The text was updated successfully, but these errors were encountered: