Android Question Copy a customlistview

alain bertrand

Member
Licensed User
Longtime User
A customlistview is populated from SQLite, Google contacts, inputbox.
The user edit this CLV: select/deselect panels, filter it (remove at)...
I wish to copy/restore the object to make reset CLV possible (the state before editing).
Neither RandomAccessFile nor B4XSerializator are not working to copy a CLV object.
A way around is working:
duplicate clv1.visible=True -> clv2.visible=False
Populate both clv1 and its shadow clv2
Edit clv1 only
Restore clv1 from clv2

Is it a more elegant way ?
 
Top