开发者

Auto loading and disposing image gallery

开发者 https://www.devze.com 2023-03-28 16:40 出处:网络
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

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

精彩评论

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