How to use Universal Image Loader

前端 未结 5 2093

I have a requirement where I need to load thumbnails and a Text in ListView which gets set by the custom Adapter. The Thumbnails shoul

5条回答
  •  时光说笑
    2020-12-09 19:29

    In your adapter's oncreate() define

     ImageLoader imageLoader=new  ImageLoader(activity.getApplicationContext());
    

    and use it in the getView() method:

    imageLoader.DisplayImage(//your image url, //your imageView);
    

提交回复
热议问题