try recycler_view.smoothScrollBy(0, 100);
here 0 represents x-coordinate
and 100 represents y-coordinate
I used this in vertical recyclerView where I wanted to scroll to next position in the vertical list and for coming to the previous position I simply replaced 100 with -100