0
votes

I am implementing search and there are cases when images of old results are loaded and applyed to new ones, so how can I prevent Glide loading images and displaying on imageView when I have new search results.

1
Please don't use the glide tag for questions about the Android image loading library. Use [android-glide] instead. See How do I avoid misusing tags? and the tagging guide.Zoe

1 Answers

1
votes

If you're using Glide to load images, you can completely skip the caching of images by using something like below:

Glide.with(fragment)
  .load(url)
  .diskCacheStrategy(DiskCacheStrategy.NONE)
  .into(view);