-
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
Gilde repeating images in GridView when using custom adapter #193
Comments
Can you reproduce it if you build from master (instructions on how to do so are on the wiki)? The Flickr sample uses a grid and I haven't yet noticed this problem. Does anything you do make it more or less frequent? Are any of your urls ever null? As far as I can tell your code here looks correct. |
This is because you do not set the placeholder. And when you scroll you got the reused image view with bitmap, that have been loaded before. And when a new image is downloaded glide replaces it |
using volley my code works fine but when i use Glide library images get repeated |
@AlexBlokh In theory setting a placeholder shouldn't be necessary, Glide is supposed to set a null drawable by default if no placeholder is set. @penmatsa Can you create a small sample project that reproduces the problem that I can take a look at? I'd love to figure out what's going wrong here. |
ya sure i will send you sample app |
Please re-open if you get the chance to add a sample app, I'm definitely interested in fixing this if there's something to fix. |
facing the same issue with Glide.. |
Hey, thanks for bringing it up. So far we weren't able to reproduce it. We'll definitely take a look, if you can give a sample app which can be run and shows the issue (github or zip doesn't matter). Without that there is not much we can do, because it works in every case we've encountered. Before this you should make sure you're using the latest Glide 3.6.0 and try clearing your cache and may also worth checking your images manually. |
I am using glide library jar to load images in grid view. In had used a custom adapter with viewholder but still some images in gridview get repeated.
The text was updated successfully, but these errors were encountered: