📌  相关文章
📜  从适配器 android recyclerview 中删除项目 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:11.581000             🧑  作者: Mango

代码示例1
private void removeItem(int position) {
    int newPosition = holder.getAdapterPosition();
    model.remove(newPosition);
    notifyItemRemoved(newPosition);
    notifyItemRangeChanged(newPosition, model.size());
}