What I have: a custom listview with Textviews and checkbox.
You need to update the adapter to retain the value of checkbox
holder.chk.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
CheckBox c = (CheckBox)v.findViewById(R.id.chkID);
Boolean chk = c.isChecked();
Integer pos = (Integer)v.getTag();
itemList.get(pos).setChk(chk);
}
});
For more help you can refer this post in Retain Checkbox value