Last active
August 29, 2015 14:02
-
-
Save chukitow/a54ae6119c0e81d4bc42 to your computer and use it in GitHub Desktop.
Uso basico de la libreria image loader de android
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
/*Los objetos*/ | |
ImageLoader imageLoader; | |
DisplayImageOptions options; | |
/*Iniciarlos*/ | |
imageLoader = ImageLoader.getInstance(); | |
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context) | |
.build(); | |
imageLoader.init(config); | |
/*Opciones del image loader*/ | |
options = new DisplayImageOptions.Builder() | |
.showImageOnLoading(R.drawable.ic_launcher) // imagen que se muestra mientras se espera la que se descargara | |
.build(); | |
imageLoader.displayImage(URL, IMAGEVIEW,options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment