i have a problem with my recyclerview. Whenever I insert new data, it wont be on top of the recycler view.
This is my code to insert new data
dbRefForm = FirebaseDatabase.getInstance().getReference().child("LIST OF FORM");
dbRefForm.child(ic_number).setValue(formDataTwo);
My Firebase looks like this. Example image
I also set my recyclerview
LinearLayoutManager mLayoutManager = new LinearLayoutManager(ViewApplicationActivity.this);
mLayoutManager.setReverseLayout(true);
mLayoutManager.setStackFromEnd(true);
recyclerView.setLayoutManager(mLayoutManager);
recyclerView.setAdapter(adapter);
what did i missed?