我正在使用 RecyclerView,并且.notifyItemInserted仅将一项插入到 RecyclerView 中。对于多个项目,我该怎么做?我想避免使用.notifyDataSetChanged().
.notifyItemInserted
.notifyDataSetChanged()
假设我有25 items,我想插入another 20,我会调用什么方法?
25 items
another 20
android android-recyclerview
android ×1
android-recyclerview ×1