You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Coil 3 and loading images from the network for every item in a RecyclerView.
imageView.load(image) {
// ...
}
The issue is that on fast scrolling back and forth, the images are practically never getting loaded because the requests are getting cancelled when a ViewHolder gets recycled.
What I would like to do is to keep the request going (without leaking the View), so it can put the downloaded image into disk/memory cache, and when the user scrolls back, they could load the image much faster from disk/memory.
Is there an elegant way to do it, or do I have to implement it completely manually?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Coil 3 and loading images from the network for every item in a RecyclerView.
imageView.load(image) { // ... }The issue is that on fast scrolling back and forth, the images are practically never getting loaded because the requests are getting cancelled when a ViewHolder gets recycled.
What I would like to do is to keep the request going (without leaking the View), so it can put the downloaded image into disk/memory cache, and when the user scrolls back, they could load the image much faster from disk/memory.
Is there an elegant way to do it, or do I have to implement it completely manually?
Beta Was this translation helpful? Give feedback.
All reactions