I want my RecyclerView to scroll to the bottom when a new item is added to the list. Below is my code:
RecyclerView.LayoutManager layoutManager = new LinearL
This is happening because your
recyclerView.scrollToPosition(data.size() - 1);
is getting called first and then the list is being initialized. You need to add this line after your recycler View view is initialized. You can add this line in a handler.