CustomSpeedLinearSnapHelper
Implementation of the 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 findTargetSnapPosition.
Functions
Link copied to clipboard
Link copied to clipboard
open fun calculateDistanceToFinalSnap(layoutManager: RecyclerView.LayoutManager, targetView: View): Array<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun findTargetSnapPosition(layoutManager: RecyclerView.LayoutManager, velocityX: Int, velocityY: Int): Int