This is the adapter of my Gallery on which I display ImageViews (thumb of a page)
I want to load the images ASync (some times this can come from Network), so I did t
You can set a default bitmap before starting download of the actual image. This will make sure that the empty views dont get set with the wrong bitmaps.
// load defaultBmp in constructor.
image.setBackgroundColor(Color.WHITE);
image.setLayoutParams(new Gallery.LayoutParams(96, 170));
image.setImageBitmap(defaultBmp); // set the default bitmap (could be white).
// execute AsyncTask here.