Auto loading and disposing image gallery
I need to make an image gallery that takes a JSON list of remote images and pre-loads them and disposes them on the fly as i scroll left or right. I cannt seem to find any examples of this other than a list of images being loaded on the fly. What I want to do is to load the next ones (left an开发者_StackOverflowd right) while the previous one is on the screen, dumping the others as I go.
I see widget.gallery but is this suitable for this or should I use a Canvas
and write my own?
Look at here. There is a ListView
with lazy loading, this should show you the solution.
Lazy load of images in ListView
精彩评论