Some day ago, the same problem occures to me. The reason is that the ListView is design to reuse the ListItem, which means that the Item #9 and #17 reuse items #0-#8. So you should find some to maintain the View status ( such as checkbox check status ) in some data structure. For example ,you can forge a list to mark every checkbox status. In the getView method ,when you get Checkbox view, you should set the check status by yourself. Hopelly that can help you.
2011/7/26 Viral Brahmbhatt <[email protected]> > Hi there, > > I am trying to implement a listview with image, text and checkbox within > it, using baseadapter. > > > the problem is, let's say i have 20 items in list, so when i select the > first item checkbox, and scroll down the list, i can see the item #9 and #17 > also get checked automatically. > > can anyone pls help me to understand what is it doing? > > -- > *Regards, > Viral* > > -- > 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 -- 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

