Package 

Interface RecyclerView.SmoothScroller.ScrollVectorProvider

    • Method Summary

      Modifier and Type Method Description
      abstract PointF computeScrollVectorForPosition(intĀ targetPosition) Should calculate the vector that points to the direction where the target positioncan be found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • computeScrollVectorForPosition

        @Nullable() abstract PointF computeScrollVectorForPosition(intĀ targetPosition)

        Should calculate the vector that points to the direction where the target positioncan be found.

        This method is used by the LinearSmoothScroller to initiate a scroll towardsthe target position.

        The magnitude of the vector is not important. It is always normalized before beingused by the LinearSmoothScroller.

        LayoutManager should not check whether the position exists in the adapter or not.

        Parameters:
        targetPosition - the target position to which the returned vector should point