public class StartSnapHelper
extends SnapHelper
Constructor and Description |
---|
StartSnapHelper(int flingOffset) |
Modifier and Type | Method and Description |
---|---|
void |
attachToRecyclerView(RecyclerView recyclerView) |
int[] |
calculateDistanceToFinalSnap(LayoutManager layoutManager,
View targetView) |
protected LinearSmoothScroller |
createSnapScroller(LayoutManager layoutManager) |
View |
findSnapView(LayoutManager layoutManager) |
int |
findTargetSnapPosition(LayoutManager layoutManager,
int velocityX,
int velocityY) |
public int[] calculateDistanceToFinalSnap(LayoutManager layoutManager, View targetView)
public void attachToRecyclerView(RecyclerView recyclerView) throws IllegalStateException
IllegalStateException
public View findSnapView(LayoutManager layoutManager)
public int findTargetSnapPosition(LayoutManager layoutManager, int velocityX, int velocityY)
protected LinearSmoothScroller createSnapScroller(LayoutManager layoutManager)