I have a ListView which is layout below a header bar and layout above a footer bar. Each row of the ListView contains a LinearLayout with a CheckBox and TextView side by side. Now, when I have more rows that can be shown at a time, you can of course scroll down or up. However, once I scroll down or up the first and / or last CheckBox is being checked automatically. My finger is nowhere near where you would select the check box. What could be causing this?
Note I used code here: http://www.anddev.org/checkbox_text_list___extension_of_iconified_text_tutorial-t771.html
I have a ListView which is layout below a header bar and layout above
Share
Looking briefly into code presented under link in question I can see the following:
As you can see the view is reused during scroll and checkbox state is set with method setCheckBoxState.
Then in CheckBoxifiedTextView you can find:
where in 4th line there is setChecked(true) hardcoded which might be causing the issue.