[英]notifyDataSetChanged() resetting scroll state in RecyclerView
Is there a way to implement notifyDataSetChanged()
and keep the scroll state in a RecyclerView
? 有没有一种方法可以实现
notifyDataSetChanged()
并将滚动状态保持在RecyclerView
? I already tried with notifyItemChanged()
and notifyItemRangeChanged()
but with the same results. 我已经尝试使用
notifyItemChanged()
和notifyItemRangeChanged()
但是结果相同。
notifyItemRangeChanged(0,adapter.getItemCount());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.