-
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 source of image to onLoadingComplete callback #239
Comments
I had the similar idea - #149 |
Its a hack because it does not really tell you which items are cached and witch are not.
Also, that solution does not distinguish between memory cache and disc cache. |
Something like this would be nice, by why not take it a step further. I feel that you should return the STREAM, instead of a bitmap. That way you can use BitmapRegionDecoder on the cached file and not worry about having to hold all of image in RAM like the current loadedImage is! |
Greetings,
I have an endless grid view with images from the web, I also have a custom animation that I play on image load. My problem is with the fact that in onLoadingComplete, I don't know if the image was loaded from cache or from the web. So the animation plays every time I scroll, which makes my grid view look bad.
I've seen your solution in ImageListActivity, but holding a static list of url's in the listener seems like a hack to me.
A very simple solution would be to extend onLoadingComplete to:
What do you think?
The text was updated successfully, but these errors were encountered: