Created
August 27, 2014 20:22
-
-
Save mistrydarshan99/f107e6a77f36992f449a to your computer and use it in GitHub Desktop.
how to use universal image loader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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