RecyclerView: scrollToPosition not working
You used layoutManager.setReverseLayout(true)
and layoutManager.setStackFromEnd(true)
in order to start your list from the end. So, if I understand it correctly, the list starts now from position adapter.getItemCount() - 1
and your list shouldn't scroll. Maybe you should try ...scrollToPosition(0)
.
I have the same problem and smoothScrollToPosition
method solve it:
RecyclerView.smoothScrollToPosition(postion);