I want to display the List items in List View and after click on any list item wants to load the around 50 images from resource folder.for each List item click i want to show the different set of images.
Which is the best way to proceed?
preguntado el 22 de septiembre de 13 a las 04:09
You may want to look into this training tutorial in the android documentation: http://developer.android.com/training/displaying-bitmaps/index.html
This will help in displaying images quickly and without memory issues.
As for the approach, it depends on the type of your listview and its contents,
If its items are dynamic and large in number then you may want to have database table linking your list item index with your resource images (image names). You can then feed these into an adapter on clicking list item (onItemClick) to be displayed. Mostly images are best displayed in a GridView.
If the number is small and static, you can have a two dimensional array of the list item index and the images in your resource folder.
Espero que esto ayude.