Search code examples
androidlazy-loadingandroid-image

Lazy loading with fade in


I'm looking for a way to lazy load images into a listview. Preferably a framework that also support image animations.

Is this available for Android?

I'm using API level 8 and up.


Solution

  • You probably want to take a look at Android Query. It has support for lazy loading of images. As you can see in the documentation, it also supports basic animations.

    Example to lazy load with basic settings:

    AQuery aq = new AQuery(context);
    aq.id(your_imageview).image("your_image_url");
    

    Example to lazy load an image with a fade in animation:

    AQuery aq = new AQuery(context);
    aq.id(your_imageview).image("your_image_url", true, true, 0, null, 0, AQuery.FADE_IN);