// Using an AsyncTask to load the slow images in a background thread newAsyncTask<ViewHolder,Void,Bitmap>(){privateViewHolderv;@OverrideprotectedBitmapdoInBackground(ViewHolder...params){v=params[0];returnmFakeImageLoader.getImage();}@OverrideprotectedvoidonPostExecute(Bitmapresult){super.onPostExecute(result);if(v.position==position){// If this item hasn't been recycled already, hide the // progress and set and show the image v.progress.setVisibility(View.GONE);v.icon.setVisibility(View.VISIBLE);v.icon.setImageBitmap(result);}}}.execute(holder);