samedi 5 novembre 2016

checkbox's in a listView / adapter are "pressed" on their own

i have a listView and an adapter. each item in the listView has a checkbox. when clicking on a checkbox in the list view, the checkboxs 5-6 items below (repetitive - all checkboxs ) are also seemed as pressed - the light is on, even tho no one click on then, and when checking if its actually pressed with 'isChecked' bool flag, it is false. (when using : cb.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {.... )

thanks.




Aucun commentaire:

Enregistrer un commentaire