在ExpandableListView上删除组

时间:2017-04-28 11:43:36

标签: android expandablelistview expandablelistadapter

我有一个大问题。我想从 ExpandableListView 中删除一个组,然后使用 notifyDataSetChange 删除“更新列表”。 我有这段代码:

db.deleteMarket(name); // remove group from database
expandableListDetail.remove(expandableListTitle.get(groupPos)); //remove from list
((BaseExpandableListAdapter) expandableListAdapter).notifyDataSetChanged();

系统成功从数据库中删除该组,但它仍然出现,我需要重新启动应用程序才能更新。 如何在删除后直接更新?

0 个答案:

没有答案