smoothScrollBy
Animate a scroll by the given amount of pixels along either axis.
Parameters
Pixels to scroll horizontally
Pixels to scroll vertically
Animate a scroll by the given amount of pixels along either axis.
Parameters
Pixels to scroll horizontally
Pixels to scroll vertically
Interpolator to be used for scrolling. If it is null, RecyclerView will use an internal default interpolator.
Smooth scrolls the RecyclerView by a given distance.
Parameters
x distance in pixels.
y distance in pixels.
Interpolator to be used for scrolling. If it is null, RecyclerView will use an internal default interpolator.
Duration of the animation in milliseconds. Set to UNDEFINED_DURATION to have the duration be automatically calculated based on an internally defined standard initial velocity. A duration less than 1 (that does not equal UNDEFINED_DURATION), will result in a call to scrollBy.