mercredi 6 avril 2016

deleting row of sqlite database using a button in each row of ListView

I have created a list view which shows the data from a database. In each row of the ListView I have added a CheckBox, a button to delete it and another to edit it. My problem is to get the id over the row, in which a button is clicked and how to convert and use that id for my sqlite database command ? Setting a long click listener has been a bit trouble since the rows do not respond to long click when there is a CheckBox in them , so i want the buttons to exist and function. Thanks

Aucun commentaire:

Enregistrer un commentaire