Remove selected item from ListView

前端 未结 3 617
無奈伤痛
無奈伤痛 2020-12-21 13:53

I want to delete the selected item from the ListView but I can\'t. I\'ve tried a lot of methods but they aren\'t working for me.

This is my adapter list

3条回答
  •  天涯浪人
    2020-12-21 14:39

    You can remove the item from the underlying list and signal the adapter, that the dataset has changed.

    Have a look at this method for an example.

提交回复
热议问题