SkillAgentSearch skills...

LazyList

Lazy load of images in Android

Install / Use

/learn @thest1/LazyList
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

<img src="http://img718.imageshack.us/img718/9149/screen1sx.png" />

Originally published <a href="http://stackoverflow.com/questions/541966/android-how-do-i-do-a-lazy-load-of-images-in-listview/3068012#3068012">here</a>.

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 <a href="https://github.com/thest1/LazyList/blob/master/LICENSE">MIT license</a>.

View on GitHub
GitHub Stars1.2k
CategoryDevelopment
Updated3d ago
Forks491

Languages

Java

Security Score

95/100

Audited on Apr 3, 2026

No findings