fling

open fun fling(velocityX: Int, velocityY: Int): Boolean(source)

Begin a standard fling with an initial velocity along each axis in pixels per second. If the velocity given is below the system-defined minimum this method will return false and no fling will occur.

Return

true if the fling was started, false if the velocity was too low to fling or LayoutManager does not support scrolling in the axis fling is issued.

Parameters

velocityX

Initial horizontal velocity in pixels per second

velocityY

Initial vertical velocity in pixels per second

See also