android-checkedtextview

Checkedtextview check/uncheck after scroll Listview

六月ゝ 毕业季﹏ 提交于 2019-12-04 05:12:09
问题 I'm developing checkedtextview in listvew using viewHolder and getview. To populate check/uncheck status binding from database is running well. But, if I check item and then scroll listview, it will back to uncheck. here is my customAdapter code. public class CustomAdapter extends ArrayAdapter<Model> { private Activity activity; int id; String autoid; ArrayList<Model> items; DatabaseHelper dbhelper = new DatabaseHelper(getContext()); public CustomAdapter(Activity context, int resource,