Editable ListView in Android - as is in iOS
<p>how would one create something like editable UITableView on iPhone?  </p>

<p>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.</p>

<p>If there is no built-in or open source alternative, I would probably need to code it myself. </p>

<p>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.</p>

<p>When the user then clicks the Move/Delete button, I would somehow collect indexes of the checked items (see <a href="http://stackoverflow.com/questions/4831918/how-to-get-all-checked-items-from-a-listview">this answer</a>) and do the actions.</p>

<p>If the user exits the edit mode, I would make the checkboxes gone again.</p>

<p>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?</p>

<p><img src="http://i.stack.imgur.com/pAGFx.png" alt="enter image description here"></p>
