delete a specific item from listview stored in database in android application

前端 未结 2 1493
情歌与酒
情歌与酒 2021-01-27 04:07

I am making an android application in which i have five items in a list .On each item click data is coming from url and then i have stored the items in local database.Now i want

2条回答
  •  忘掉有多难
    2021-01-27 04:20

    you can set onclick listener for the items in the adapter and in that onclick you can delete the textview and using the above method can delete it from the database.

    check this question and answer.

    Deleting items from a ListView using a custom BaseAdapter

    you can combine this and come to a solution. sorry i havent done something like you are doing. this is an idea.

提交回复
热议问题