private void reduceScrollSpeed(double speed,int headerVisible){
  mRecyclerView.stopScroll();
  int distToStop=minDistanceToScrollBack;
  mScroller.setScrollVector(getDecelVector(headerVisible));
  mScroller.setTargetPosition(getDecelTargetPos(headerVisible));
  mScroller.setDistanceToStop(distToStop);
  mScroller.setInitialSpeed((float)Math.abs(speed));
  mLayoutManager.startSmoothScroll(mScroller);
}

private void reduceScrollSpeed ( double speed , int headerVisible ) { mRecyclerView . stopScroll ( ) ; int distToStop = minDistanceToScrollBack ; mScroller . setScrollVector ( getDecelVector ( headerVisible ) ) ; mScroller . setTargetPosition ( getDecelTargetPos ( headerVisible ) ) ; mScroller . setDistanceToStop ( distToStop ) ; mScroller . setInitialSpeed ( ( float ) Math . abs ( speed ) ) ; mLayoutManager . startSmoothScroll ( mScroller ) ; }
reduce the scroll speed before scrolling back .
