Answers for "android remove recyclerview item viewbinding"

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 "android remove recyclerview item viewbinding"

Browse Popular Code Answers by Language