How to make a lazy load of images in ListView in Android - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to make a lazy load of images in ListView in Android

Jeson84Jeson84 USAPosts: 90Member

I plan to use a ListView in Android to load a set of images from a website. Is there a way to make a lazy load of images in ListView?



  • DavidMDavidM USAPosts: 342Member
    edited January 2014

    Use Universal Image Loader open source library.

    From the project page:

    This project aims to provide a reusable instrument for asynchronous image loading, caching and displaying. It is originally based on Fedor Vlasov's project and has been vastly refactored and improved since then.


    • Multithread image loading
    • Possibility of wide tuning ImageLoader's configuration (thread executors, downloader, decoder, memory and disc cache, display image options, and others)
    • Possibility of image caching in memory and/or on device's file system (or SD card)
    • Possibility to "listen" loading process
    • Possibility to customize every display image call with separated options
    • Widget support
    • Android 2.0+ support
  • rajatghairajatghai delhiPosts: 1Member
    edited January 18

    I want to add images in my listview. Custom adpater ` LayoutInflater inflater=activity.getLayoutInflater();

        if(convertView == null){
            convertView=inflater.inflate(R.layout.colmn_row, null);
            txtFirst=(TextView) convertView.findViewById(;
            txtSecond=(TextView) convertView.findViewById(;
            txtThird=(TextView) convertView.findViewById(;
            txtFourth=(TextView) convertView.findViewById(;
        HashMap<String, String> map=list.get(position);
        return convertView;

    ` How can i implement an adapter so that i can add images to it? I have added the adapter through android multicolumn listview tutorial. Also i want to do lazy loading of images in listview. Please tell me how can i do that? Thanks in advance.

Sign In or Register to comment.