开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜