notifyHorizontalEdgeReached

open fun notifyHorizontalEdgeReached(startX: Int, finalX: Int, overX: Int)(source)

Deprecated

Use notifyHorizontalEdgeReached directly.

Notify the scroller that we've reached a horizontal boundary. Normally the information to handle this will already be known when the animation is started, such as in a call to one of the fling functions. However there are cases where this cannot be known in advance. This function will transition the current motion and animate from startX to finalX as appropriate.

Parameters

startX

Starting/current X position

finalX

Desired final X position

overX

Magnitude of overscroll allowed. This should be the maximum desired distance from finalX. Absolute value - must be positive.