scrollToPosition
Scroll the RecyclerView to make the position visible.
RecyclerView will scroll the minimum amount that is necessary to make the target position visible. If you are looking for a similar behavior to setSelection or setSelectionFromTop, use scrollToPositionWithOffset.
Note that scroll position change will not be reflected until the next layout call.
Parameters
position
Scroll to this adapter position