Retain scroll position when adapter changes

时间:2019-04-16 22:18:45

标签: android android-recyclerview

I have a RecyclerView using a ListAdapter which supports changing the order of the contained list (using submitList()). If I scroll to the top and change the sort order, the recycler will scroll to the show the item that was previously on the top. Is there any way to prevent this, and keep the scroll position where it was?

0 个答案:

没有答案