android-query, downloading images for a listView -


i'm using android query download image in each element of listview, , downloading thoses images very, very, slow (images far heavy). i'm having image appearing each 5 minutes or so.. first i'm surprise we've got instanciate 1 object aquery each convertview, suppose lib doesn't queu threads way.. if knows better lib, intrested

i don't know i'm doing wrong , hope !

here code of adapter :

private class mainpagerlistviewadapter extends baseadapter {      private arraylist<event> datalist;     private layoutinflater inflater;     private context context;      public mainpagerlistviewadapter(context context,             arraylist<event> datalist) {          this.inflater = layoutinflater.from(context);         this.datalist = datalist;         collections.sort(datalist, new alaunesort());         this.context = context;     }      @override     public int getcount() {         return datalist.size() + 1;     }      @override     public object getitem(int position) {         return position;     }      @override     public long getitemid(int position) {         return position;     }      @override     public view getview(int position,  view convertview, viewgroup parent) {          convertview = inflater.inflate(r.layout.main_pager_basic_fragment_item_layout, null);         aqutility.setdebug(true);         aquery aq = new aquery(convertview);         string thumbnail = datalist.get(position-1).file;         aq.id(r.id.imageview).progress(r.id.progress).image(thumbnail, true, true, 0, 0, null, aquery.fade_in);          return convertview;     } 

thanks !

renaud

please see below lazy loading listview's source link that, may you.

lazy loading listview


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -