ls02 wrote: > I have listview with items that include both text and images. If I > scroll the listview fast enough all items images are messed up: wrong > images are displayed for wrong items. The same problem exists with > expandable listview. I tried to implement holder class to cache > imageview and image itself using setTag, getTag but nothing helps. The > faster I scroll the more items are messed up. Text almost always > displayed correctly.
There is likely a problem in the way your row recycling works. For example, if you are downloading the images via AsyncTasks, then attaching them to a row once the image has arrived and is cached, you can get this effect. The problem is that if the user scrolls while your AsyncTask is running, by the time the download is complete and you update the row, the row is not supposed to have that image anymore -- it's now supposed to show a different image, after the scroll. I went through some pain to get a reliable system for this: http://github.com/commonsguy/cwac-thumbnail I am not completely happy with the implementation, as the guts are too complicated. But, it's being used in production on some highly-rated apps, so it should hold up OK. Just don't use it as an example of great coding techniques... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

