ListAdapter not refreshing RecyclerView if I submit the same list with different item order

后端 未结 5 1831
挽巷
挽巷 2021-01-12 06:57

I am using a RecyclerView with ListAdapter (which uses AsyncListDiffer to calculate and animate changes when list is replaced).

The problem is that if I

5条回答
  •  滥情空心
    2021-01-12 07:33

    Just call listAdapter.notifyDataSetChanged() and the ListAdapter will redraw the list based on submitted values.

提交回复
热议问题