uncheck all checbox in listview in android
问题 i want to uncheckall checkbox in customlistview.my adapter works fine so on click button this is written in my button listener for(int i = 0; i<listview.getChildCount();i++) { v = listview.getChildAt(i); CheckBox cv =(CheckBox)v.findViewById(R.id.checktitle); if(cv.isChecked()) { // cv.setChecked(false); //listview.setItemChecked(i, false); toggle(cv); } in toggle method public void toggle(CheckBox v) { if (v.isChecked()) { v.setChecked(false); } else { v.setChecked(true); } } Adapter public