I had the following problem:
I have a ListActivity, its ListView consists of an icon, text, and a checkbox (using LayoutInflater).
The adapter for ListView extends ResourceCursorAdapter (i.e. ListView data source is retrieved from the database, the status of each row is also checked)
Everything works pretty well, except when I uncheck the box or check the box on any line, if I scroll down until the changed box is no longer visible, and then scroll up, the box will be restored to its original state.
The database is changed, this is not a problem (i.e. if I change the line and exit the operation, and enter again, the changed line is displayed OK).
My guess is that it matters to display the list, because for some reason the ListView "displays" the initial state of all the rows when it was first populated when scrolling.
I was looking for this error, but I did not find anyone who had this problem. I appreciate any advice you have.
source
share