Skip to content Skip to sidebar Skip to footer

Listview Imageview Load Same Pictures

i have a big problem with my ListViewAdapter. My listview shows 2 entrys at the same time. Each entry should get a different picture from my server. The first and the second entrys

Solution 1:

from your question I can assume that you don't know about the ListViewrecycling mechanisem

basically, view that that not visible anymore (after user scrolled it away from sight) it been recycled to displayed new item that need to shown. that's the convertView parameter at the getView() method...

probably you are see the same image because the recycled view stays with the same image..

also there is the issue of the asynchronous task (your ImageDownload class) that can finish it execute when the original item that started the request already been recycled.

I recommend you to "dig" as dipper as you can to understand all about ListView - this is one of the most complex and important UI component. reading the post I linked you is a good start.

also this video is very important:

http://www.youtube.com/watch?v=wDBM6wVEO70

Post a Comment for "Listview Imageview Load Same Pictures"