Skip to content
Lazy load of images in Android
Branch: master
Clone or download
Latest commit be926df Sep 8, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
res Import sources May 29, 2011
src/com/fedorvlasov/lazylist Sample images urls fixes Sep 8, 2014
.classpath
.gitignore
.project Import sources May 29, 2011
AndroidManifest.xml Target SDK 1.6 to support different screen sizes Mar 5, 2012
LICENSE
README.md
project.properties

README.md

LazyList

A simple library to display images in Android ListView. Images are being downloaded asynchronously in the background. Images are being cached on SD card and in memory. Can also be used for GridView and just to display images into an ImageView.

Originally published here.

Basic Usage

ImageLoader imageLoader=new ImageLoader(context);
...
imageLoader.DisplayImage(url, imageView);

Don't forget to add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Please create only one instance of ImageLoader and reuse it all around your application. This way image caching will be much more efficient.

License

LazyList is released under the MIT license.

You can’t perform that action at this time.