ImageLoader is a small lightweight Android library for asynchronously loading images into ImageViews. Supports loading images from resources, local storage and the internet. Images can optionally be cached.
You can download a jar from GitHub's releases page.
Loading an image from resources:
ImageView img = (ImageView)findViewById(R.id.img);
new ImageLoader(context)
.fromResource(R.drawable.image)
.to(img);
Loading an image from the internet (cached):
String url = "http://path.to.image";
ImageView img = (ImageView)findViewById(R.id.img);
new ImageLoader(context)
.fromNetwork(url, SaveLocation.Cache)
.to(img);
Loading an image with rounded corners and animation:
ImageView img = (ImageView)findViewById(R.id.img);
new ImageLoader(context)
.fromResource(R.drawable.image)
.withAnimation(R.anim.fade_in)
.setRounded()
.to(img);
ImageLoader requires a minimum API level of 8 (2.2 Froyo).