Skip to content

Instantly share code, notes, and snippets.

@mariusk
Created July 29, 2013 20:29
Show Gist options
  • Save mariusk/6107538 to your computer and use it in GitHub Desktop.
Save mariusk/6107538 to your computer and use it in GitHub Desktop.
DisplayImageOptions opts = new DisplayImageOptions.Builder()
.showStubImage(placeholderid)
.showImageForEmptyUri(placeholderid)
.showImageOnFail(placeholderid)
.resetViewBeforeLoading()
.cacheInMemory()
.cacheOnDisc()
.build();
ImageLoaderConfiguration ilconf = new ImageLoaderConfiguration.Builder(getApplicationContext())
.defaultDisplayImageOptions(opts)
.build();
imgLoader = ImageLoader.getInstance();
imgLoader.init(ilconf);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment