Is it possible to use async image loader from this project http://open-pim.com/tmp/LazyList.zip with Gallery widget?
I tried:
public View getView(int position, View convertView, ViewGroup parent) {
ImageView imageView=new ImageView(activity.getBaseContext());
imageLoader.DisplayImage(urlList.get(position), activity, imageView);
imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
imageView.setLayoutParams(new Gallery.LayoutParams(150, 150));
return imageView;
}
but it had no effect.
You must tag your image views appropriately so the asynchronous task can update them once the images are retrieved from the cache or network: