Best way to store bitmaps
===

Right now I have some classes that are in charge of keeping the internal memory bitmaps which are then listed in ListViews.

Upon listing, resort to a method that tell what the name of the image you want to return and receive the corresponding bitmap.

When the application starts, load into memory (HashMap <String,Bitmap>) all the images you'll need, once you load the image from the internal memory directly to the listview, the process takes a long time.

I am using the recycling of views and each item has two and two imageviews textviews. However, the scrooll is very slow and has a lot of lag.


It is a good solution to have the images in memory (hashmap)? For loading into memory at the time of the list is even slower. The images have 100x100 pixels.

My question is: My problem with lag may have to do with the fact that the images are all in memory? What is the best solution?