I am working on an application that lets the user assign images to people and then view the images by the person's name. What I am currently doing is that when a person is clicked on, the all of that person's images will be loaded into their individual ImageView
s. This works fine when loading three or four images, but when 20+ are involved, things start to get a little laggy.
So, my question is: How can I efficiently load these images from files without completely lagging out the application?
Things I have thought about:
- A preloader that loads all the images from all the people before starting up the main application. A problem would occur if one of the files were removed.
- Having a mini-preloader to load all of the images before displaying them.
- Loading the images without a loader when the user clicks on the person.