I have a class that extends BaseAdapter
, which I use for a ListView
. In the getView()
method of that class I'm using an AsyncTask
with a callback method to download an image (once downloaded, I store it, so I don't have to download it again). When the ListView
loads the items first, only the first item displays an image an then starts to change the images (repeatedly displaying the images of the other items). Later also the other items start showing the same behaviour. After a while they stop cycling the images and each item shows the correct images. If I scroll the ListView
the items are starting again to cycle the images.
This only happens, if I recycle the convertView
parameter, that is passed to getView()
. If I don't the images take very long to show up, and I'm afraid I'm creating too much new Views.
Thanks in advance for any advices, to get this working properly.