public class CustomSpeedLinearSnapHelper
extends LinearSnapHelper
LinearSnapHelper
supporting hscroll custom target child view
The implementation will snap the center of the custom target child view to the center of the
attached RecyclerView
. If you intend to change this behavior then override SnapHelper#findTargetSnapPosition
.
Constructor and Description |
---|
CustomSpeedLinearSnapHelper(int deltaJumpThreshold) |
Modifier and Type | Method and Description |
---|---|
int |
findTargetSnapPosition(RecyclerView.LayoutManager layoutManager,
int velocityX,
int velocityY) |