How do I delete an item from my custom base adapter?

后端 未结 5 1688
半阙折子戏
半阙折子戏 2020-12-16 22:29

I am extending BaseAdapter to make a custom listview row. I have context menu that opens everytime a user holds on the row and prompts if he wants to delete it. However how

5条回答
  •  遥遥无期
    2020-12-16 22:49

    1. remove item from items
    2. call BaseAdapter.notifyDataSetChanged(). Then listview will be redrawn and target row will be removed from screen.

提交回复
热议问题