Re: [android-developers] listview checkbox recycle issue

2011-02-26 Thread Kostya Vasilyev
ViewHolder is not a good place to store data state - as you are doing. A ViewHolder is not associated with the data item, it's associated with the item layout, and when recycling happens, the view holder is also affected. You need to store selection state in MyObject, so it's completely

[android-developers] listview checkbox recycle issue

2011-02-25 Thread Wall-E
I have a ListActivity and an ArrayAdapter that contains a list of an Object for example ArrayAdapterMyObject. Now in my ArrayAdapter I inflate a layout that includes a checkbox. I'm having the issue now that when I click on the checkboxes it's fine until it scrolls past the window. Now I know

Re: [android-developers] listview checkbox recycle issue

2011-02-25 Thread Kapil Lokhande
Hi, I usually use images for checked and unchecked status checkboxes rather than using actual checkbox widget. because i always failed to use actual checkbox widget in listview facing listitem click issue. I know this may not be useful suggestion to you. On Sat, Feb 26, 2011 at 7:30 AM, Wall-E