memoryCachePolicy(CachePolicy.DISABLED) after loading the same picture will cause flicker, glide has dontAnimate() can solve, the coil?
I've noticed the same flicker in ImageViews even when loading images from the cache.
即使从缓存中加载图像,我也注意到了ImageViews中的闪烁效果。
Me too! but i set crossfade(false) to temporarily solve this problem.
@colinrtwhite When setting the same picture, I hope he won't change anything.
@isMeiying memoryCachePolicy(CachePolicy.DISABLED) will disable reading and writing to the memory cache. This will force Coil to load the image from disk, which can often take more than 16ms, which can cause the flickering.
The equivalent of Glide's dontAnimate() is crossfade(false) (and don't set memoryCachePolicy). Let me know if that solves your issue.
@isMeiying
memoryCachePolicy(CachePolicy.DISABLED)will disable reading and writing to the memory cache. This will force Coil to load the image from disk, which can often take more than 16ms, which can cause the flickering.The equivalent of Glide's
dontAnimate()iscrossfade(false)(and don't setmemoryCachePolicy). Let me know if that solves your issue.
Thank you very much, it solved my problem!
Most helpful comment
@isMeiying
memoryCachePolicy(CachePolicy.DISABLED)will disable reading and writing to the memory cache. This will force Coil to load the image from disk, which can often take more than 16ms, which can cause the flickering.The equivalent of Glide's
dontAnimate()iscrossfade(false)(and don't setmemoryCachePolicy). Let me know if that solves your issue.