I am using Glide 3.7.0 with RecyclerView . When updating, the item always blinks (call notifyDataSetChanged ).
Here is my code:
Glide .with(context) .load(filepath) .diskCacheStrategy(DiskCacheStrategy.NONE) .skipMemoryCache(true) .dontAnimate() .into(imageview);
When I do not use the cache, ImageView has a zero bitmap when the notifyDataSetChanged method is notifyDataSetChanged , and Glide has not finished loading the bitmap.
If I use the following code:
Glide .with(context) .load(filepath) .dontAnimate() .into(imageview);
Then the ImageView element no longer blinks (using the cache).
I want to dynamically update the item view, so I will disable the slip skittle.
Are there any solutions to fix this error?
Many thanks!
android blink android-recyclerview android-glide notifydatasetchanged
Yoyoy chu
source share