-
public class TopSnappedSmoothScroller extends LinearSmoothScroller
Common class for all Smooth Scroller Layout Managers.
-
-
Field Summary
Fields Modifier and Type Field Description public static floatMILLISECONDS_PER_INCH
-
Constructor Summary
Constructors Constructor Description TopSnappedSmoothScroller(Context context, RecyclerView.LayoutManager layoutManager)
-
Method Summary
Modifier and Type Method Description PointFcomputeScrollVectorForPosition(intĀ targetPosition)Controls the direction in which smoothScroll looks for your view -
Methods inherited from class androidx.recyclerview.widget.LinearSmoothScroller
calculateDtToFit, calculateDxToMakeVisible, calculateDyToMakeVisible -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.SmoothScroller
computeScrollVectorForPosition, findViewByPosition, getChildCount, getChildPosition, getLayoutManager, getTargetPosition, instantScrollToPosition, isPendingInitialRun, isRunning, setTargetPosition -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
TopSnappedSmoothScroller
TopSnappedSmoothScroller(Context context, RecyclerView.LayoutManager layoutManager)
-
-
Method Detail
-
computeScrollVectorForPosition
PointF computeScrollVectorForPosition(intĀ targetPosition)
Controls the direction in which smoothScroll looks for your view
-
-
-
-