Android Gallery async image load -


is possible use async image loader project http://open-pim.com/tmp/lazylist.zip gallery widget? tried:

     public view getview(int position, view convertview, viewgroup parent) {     imageview imageview=new imageview(activity.getbasecontext());      imageloader.displayimage(urllist.get(position), activity, imageview);      imageview.setscaletype(imageview.scaletype.fit_center);     imageview.setlayoutparams(new gallery.layoutparams(150, 150));      return imageview; } 

but had no effect.

you must tag image views appropriately asynchronous task can update them once images retrieved cache or network:

imageloader.displayimage(urllist.get(position), activity, imageview); imageview.settag(urllist.get(position)); 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -