[英]recyclerview scroll to top after notifyDataSetChanged()
[英]notifyDataSetChanged() resetting scroll state in RecyclerView
有沒有一種方法可以實現notifyDataSetChanged()
並將滾動狀態保持在RecyclerView
? 我已經嘗試使用notifyItemChanged()
和notifyItemRangeChanged()
但是結果相同。
notifyItemRangeChanged(0,adapter.getItemCount());
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.