Skip to content

Small Android library for loading images into ImageViews.

Notifications You must be signed in to change notification settings

LRih/ImageLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageLoader

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.

Download

You can download a jar from GitHub's releases page.

Usage

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);

Compatibility

ImageLoader requires a minimum API level of 8 (2.2 Froyo).

About

Small Android library for loading images into ImageViews.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages