已滑动的距离:
private int getScrolledDistance() {
LinearLayoutManager layoutManager = (LinearLayoutManager) getLayoutManager();
View firstVisibleItem = this.getChildAt(0);
int firstItemPosition = layoutManager.findFirstVisibleItemPosition();
int itemHeight = firstVisibleItem.getHeight();
int firstItemBottom = layoutManager.getDecoratedBottom(firstVisibleItem);
return (firstItemPosition + 1) * itemHeight - firstItemBottom;
}