1

I have a RecyclerView bounded to CursorRecyclerAdapter. When im adding an item to the start of the collection (by notifyItemInserted(0)) the list behaves as follows :

  1. When the UI is left untouched, there is an animation that moves the list to the start. meaning, shows the newly added item.
  2. When the RecyclerView was scrolled down, there is an animation that moves the list one item forward.

I would like the RecyclerView keep the exact the position. Without any animation or flickering.

I tried the following solution - How to remain at a scroll position in RecyclerView after adding items at its first index and call notifydatasetchange - but it didn't work.

I'd really appreciate any help here. Thanks a lot.

Community
  • 1
  • 1
AsafK
  • 2,425
  • 3
  • 32
  • 38

0 Answers0