-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
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
Add a preloader for RecyclerView #240
Comments
+1 this would be cool. |
Is it possible to hack around and preload images in a recycler view with this right now? |
+1 |
Absolutely, you just need to call the existing preloader's |
This would be wonderful. I'm currently manually calling Glide on each item inside the adapter, but this looks cleaner. |
@Saketme You'd still need to call Glide on each item in the adapter. The preloader only loads items into memory, not into views. The preloader is a performance improvement that prevents users from seeing images loading while they scroll (assuming the images can be loaded at least as fast as the user is scrolling). Without the preloader, since you only request images when the view is rendered, the image doesn't start loading until the user can see the view, and so the user will always see a loading indicator. |
@sjudd That's exactly what I'm doing. Sorry if I wasn't clear enough in my previous post, but I'm currently calling Glide only to preload them into memory using |
This should be fixed in https://github.com/bumptech/glide/tree/master/integration/recyclerview |
No description provided.
The text was updated successfully, but these errors were encountered: