Hi Everybody,

I have been trying to implement a gallery on my app to show n number of 
images, where n can be a really big number. I want to load the images by 
batches, depending on the items that are being shown. I do not want the 
gallery to download and display all of the images at once.

My question is: Is there any way that I can lazy load the images in a 
gallery? Based on my experiments it seems that the gallery was intended for 
a small fixed number of items/images.

I know how I can accomplish this using a listview or a grid, but since the 
gallery does not have support for attaching a scroll listener I was not able 
to come up with a clean way of doing it for a gallery.

I am thinking that may be the only option is to extend 
Gallery<http://developer.android.com/reference/android/widget/Gallery.html> and 
override the onfling or onscroll methods, but before I wanted to know if 
anybody came across this need and how it was solved. 

If you could share your experience,  would be great

Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to