how would one create something like editable UITableView on iPhone?
I need to be able to switch the list to edit mode, then select multiple items and then do an action - delete, move to another list.
If there is no built-in or open source alternative, I would probably need to code it myself.
I think that I could add a (at first invisible) checkbox to the XML layout of each ListView item, and after the user clicks "Edit", I would set a flag in the list adapter to make the checkboxes visible and show the Move and Delete buttons.
When the user then clicks the Move/Delete button, I would somehow collect indexes of the checked items (see this answer) and do the actions.
If the user exits the edit mode, I would make the checkboxes gone again.
My question is, how would I modify all items in the listview to show checkboxes? I can set a flag in my adapter, and in getView I would set visibility of that checkbox. But how would I force the listview to get all views (call getView for each) - invalidate it?