You can use:
recyclerView.smoothScrollToPosition(recyclerView.getAdapter().getItemCount());
if ant is a relevant position.
recyclerView.smoothScrollToPosition(0);
ref: http://blog.stylingandroid.com/scrolling-recyclerview-part-1/
@Override
public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state,
int position) {
LinearSmoothScroller linearSmoothScroller =
new LinearSmoothScroller(recyclerView.getContext()) {
@Override
public PointF computeScrollVectorForPosition(int targetPosition) {
return LinearLayoutManager.this
.computeScrollVectorForPosition(targetPosition);
}
};
linearSmoothScroller.setTargetPosition(position);
startSmoothScroll(linearSmoothScroller);
}
LinearSmoothScroller, . - . , , . , , , , 10000 25 , , .