Apologies for the potentially misleading title but I had no idea how to word it. If anyone else thinks they can come up with something better please feel free to edit.
I have a RecyclerView which I populate with Firebase records. To make the most recent records show at the top of the list, I have set my RecvlerView to setReverseLayout(true)
and setStackFromEnd(true)
as suggested here. This works great when the number of items fit within the screen space - the rest of the items smoothly scroll down, giving space for the new item which fades in, as shown below.
The problem is when the existing items take up all of the screen space, the new item is added 'above' the others and the RecyclerView effectively expands above the top of the screen, so to see the new item I need to pull or scroll the list down manually. Another GIF below;
How can I overcome this?