android universal image loader not working correctly -
i have cursor adapter bindview follows:
@override public void bindview(view view, context context, cursor cursor) { ... imageview imageview = (imageview) view.findviewbyid(r.id.icon); imageloader imageloader = imageloader.getinstance(); displayimageoptions options = new displayimageoptions.builder() .cacheondisk(true).cacheinmemory(true) .showimageonloading(r.drawable.ic_contact_picture).showimageonfail(r.drawable.ic_contact_picture) .resetviewbeforeloading(true) .displayer(new fadeinbitmapdisplayer(300)).build(); imageloader.displayimage(url, imageview, options); ... }
the problem i'm getting is:
when scroll through listview, item's imageview image gets displayed in item's imageview. why happen?
is internal recycling of listview items causing problem?
as say,the problem maybe because of recycler mechanism of listview,you should use viewholder hold item view performance optimization , solve wrong position problem yours.
Comments
Post a Comment