private ImageLoader(FragmentActivity activity,int defaultPlaceHolderResId){
  super(newRequestQueue(activity),BitmapCache.getInstance(activity.getSupportFragmentManager()));
  mResources=activity.getResources();
  mPlaceHolderDrawables=new ArrayList<Drawable>(1);
  mPlaceHolderDrawables.add(defaultPlaceHolderResId == -1 ? null : mResources.getDrawable(defaultPlaceHolderResId));
}

private ImageLoader ( FragmentActivity activity , int defaultPlaceHolderResId ) { super ( newRequestQueue ( activity ) , BitmapCache . getInstance ( activity . getSupportFragmentManager ( ) ) ) ; mResources = activity . getResources ( ) ; mPlaceHolderDrawables = new ArrayList < Drawable > ( 1 ) ; mPlaceHolderDrawables . add ( defaultPlaceHolderResId == - 1 ? null : mResources . getDrawable ( defaultPlaceHolderResId ) ) ; }
creates an imageloader with bitmap memory cache and a default placeholder image while the image is being fetched and loaded .
