标签: android android-recyclerview
有没有办法实现notifyDataSetChanged()并将滚动状态保持在RecyclerView?我已尝试使用notifyItemChanged()和notifyItemRangeChanged(),但结果相同。
notifyDataSetChanged()
RecyclerView
notifyItemChanged()
notifyItemRangeChanged()
答案 0 :(得分:0)
notifyItemRangeChanged(0,adapter.getItemCount());