如何删除并通知该项目已被删除?似乎使用notifyDataSetChanged();它工作得不好
代码:
@Override
public void onBindChildViewHolder(final ItemViewHolder childItemViewHolder, final int position, final Object childListItem) {
Item item = (Item) childListItem;
childItemViewHolder.btn_del.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
mItemList.remove(childListItem);
notifyDataSetChanged();
}
});}