This must be done at the adapter level, as Firebase pulls out the entire list of objects.
For RecyclerView this is the solution.
mLayoutManager = new LinearLayoutManager(getActivity()); mLayoutManager.setReverseLayout(true); // THIS ALSO SETS setStackFromBottom to true // mLayoutManager.setStackFromEnd(true); mRecyclerView.setLayoutManager(mLayoutManager);
source share