Answers for "remove item from adapter android recyclerview"

0

remove item from adapter android recyclerview

private void removeItem(int position) {
    int newPosition = holder.getAdapterPosition();
    model.remove(newPosition);
    notifyItemRemoved(newPosition);
    notifyItemRangeChanged(newPosition, model.size());
}
Posted by: Guest on June-08-2020

Code answers related to "remove item from adapter android recyclerview"

Browse Popular Code Answers by Language