In onListItemClick, you do this :

                CheckBox checkBox = (CheckBox)l.findViewWithTag
(contact.getId());

You are asking the listview to get you a checkbox control with an id.
it will return the first one it sees, which is fairly random. Ask the
view v (Which is your list item you created in getView) for the
checkbox.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to