DEPRECATED: you should use Picasso
This library allows developers to easily integrate images from the web in an Android application.
- ImageView class
- Drawable class (useful for map items)
- File cache (on the SDCard, lifetime is adjustable)
- Memory cache (LRU cache, size is adjustable)
A sample application is available: WebImage Sample.
The source code is available in this repository.
This library is compatible from API 7 (Android 2.1).
The library project requires:
The sample project requires:
- The library project
- ActionBarSherlock
- Android-AdapterItem
Add the View to the layout:
<org.pierrre.webimage.WebImageView
android:id="@+id/image"
android:layout_width="100dp"
android:layout_height="100dp" />
Set the image url:
WebImageView image = (WebImageView) findViewById(R.id.image);
image.setImageUrl("http://www.example.com/image.png");
- Email: pierredurand@gmail.com
- Twitter: @pierredurand87
- Google+: Pierre Durand
- GitHub: pierrre