Dan Harvey
Dan Harvey

Reputation: 798

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 and 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?

Upvotes: 1

Views: 344

Answers (1)

berlindev
berlindev

Reputation: 1751

Look at here. There is a ListView with lazy loading, this should show you the solution.

Lazy load of images in ListView

Upvotes: 0

Related Questions