I would like to implement the delete functionality in listview. I want it to act it like most common android apps (like the email client..etc). What I mean, is that when you click on delete button then the list will have check boxes in which you can check and then proceed with the delete.
I have my list view, but I am not sure about how the check box will appear (and will respond to clicks as opposed to the whole item responding to click), Any pointers on that? I thoght I would ask you first before I go on reinventing the wheel or bang my head against the wall.
Thank you so much
You can include checkbox in the listview
row.xmland make itsVisibilityasGONE, then when you click on aButtonthat enables all theCheckBoxesjust set a boolean true and referesh theListView. On the basis of the boolean write the logic ingetView()asAnd further for deleting you having to get the checked items and perform deletion of Data from the ListView and refresh the ListView again.
Update
Further you can have a look at my blog about the
ListView with CheckBox.