I have a ListActivity that uses a managed cursor. Each row in the list
has buttons, and clicking on some of the buttons causes an update to
the db; I subsequently call requery on the cursor.

The updates are sometimes happening on 2 rows instead of 1. For
example, the pressed button state shows both for the pressed button
and a button on another row (a fraction of a second later). In my
ViewBinder's setViewValue method, I can see that the button views are
getting recycled and reused in reverse order through LogCat:

... android.widget.imagebut...@437a0288
... android.widget.imagebut...@43799318
... android.widget.imagebut...@43791d60
... android.widget.imagebut...@437832c8
... android.widget.imagebut...@437832c8
... android.widget.imagebut...@43791d60
... android.widget.imagebut...@43799318
... android.widget.imagebut...@437a0288

It isn't only the button states that are getting mixed up - I also
have text views and progress bars that are sometimes getting updated
with another row's data.

Is there some trick to prevent this from happening?

Thanks in advance,
Craig

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en

Reply via email to