Skip to content

adapter删除item有bug #22

@zhangyinglong1993

Description

@zhangyinglong1993

/**
* 删除元素
*
* @param position
*/
public void removeElement(int position) {
if (data != null && data.size() > position) {
data.remove(position);
notifyItemRemoved(position);
notifyItemChanged(position);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions