i found the problem. I was overwriting ArrayList of recoverd items after it got recovered.... but thx for help.
How to set items checked in my listview if Listview.CHOICE_MODE_MULTIPLE_MODAL is set (programaticly)
-
03-07-2022 - |
Question
i have a problem to restore checked items after screen rotation. I use Listview with custom adapter and Listview.CHOICE_MODE_MULTIPLE_MODAL to select items. Now if i rotate my screen CAB is still present but my selection is not. Is it possible restore checked state of my list view ? I have saved all positions of checked items in onSavedInstanceState and restore them after rotation, but if i use listview.setItemChecked(position, true); for all of them they dont get checked...(All positions are getting restored properly).
Thx
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow