EdgeSnappingSmoothScroller

LinearSmoothScroller subclass that snaps the target position to start/end or either ends.

Constructors

Link copied to clipboard
constructor(context: Context, snapPreference: Int, offset: Int)

Properties

Link copied to clipboard
val SNAP_TO_ANY: Int = 0
Link copied to clipboard
val SNAP_TO_END: Int = 1
Link copied to clipboard
val SNAP_TO_START: Int = -1

Functions

Link copied to clipboard
open fun calculateDtToFit(viewStart: Int, viewEnd: Int, boxStart: Int, boxEnd: Int, snapPreference: Int): Int
Link copied to clipboard
open fun calculateDxToMakeVisible(view: View, snapPreference: Int): Int
Link copied to clipboard
open fun calculateDyToMakeVisible(view: View, snapPreference: Int): Int
Link copied to clipboard
open fun computeScrollVectorForPosition(targetPosition: Int): PointF
Link copied to clipboard
open fun findViewByPosition(position: Int): View
Link copied to clipboard
open fun getChildCount(): Int
Link copied to clipboard
open fun getChildPosition(view: View): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun instantScrollToPosition(position: Int)
Link copied to clipboard
Link copied to clipboard
open fun isRunning(): Boolean
Link copied to clipboard
open fun setTargetPosition(targetPosition: Int)