Skip to content

Instantly share code, notes, and snippets.

@mistrydarshan99
Created August 27, 2014 20:22
Show Gist options
  • Select an option

  • Save mistrydarshan99/f107e6a77f36992f449a to your computer and use it in GitHub Desktop.

Select an option

Save mistrydarshan99/f107e6a77f36992f449a to your computer and use it in GitHub Desktop.
how to use universal image loader
private DisplayImageOptions options;
public static ImageLoader imageLoader;
imageLoader = ImageLoader.getInstance();
imageLoader.init(ImageLoaderConfiguration.createDefault(activity));
options = new DisplayImageOptions.Builder().cacheOnDisc(true)
.showStubImage(R.drawable.ic_launcher)
.showImageOnFail(R.drawable.images).build();
imageLoader.displayImage("file://"+objDrList.getAttachmentName(),
viewHolder.userPhoto, options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment