androidscrollandroid-recyclerviewmove

Android RecyclerView Duplicate Item When Scrolling


I have a problem in RecyclerView. When I move item in RV and then scroll, saw some items has duplicated.


Solution

  • RecyclerView will recycle the view.When you delete data,call notifyItemChanged(pos)or notifyDataSetChanged() method.