samedi 17 septembre 2016

(android studio) Deleting listview items with checkboxes

I have spent at least a couple of hours looking at all the code online when this question is googled, yet still don't really understand how to implement this.

I have a listview populated by the database with a cursor adapter. Every listview item has a checkbox next to it.

I want to delete all the listview items from the listview that have their checkbox selected.

What code do i need in my delete button to implement this?

Thanks and kind regards.

Before anyone mentions this has been asked before; every single question has their own implementation and code in the question, i haven't been able to find a step-by-step tutorial.




Aucun commentaire:

Enregistrer un commentaire