-
public abstract class RecyclerView.OnFlingListener
This class defines the behavior of fling if the developer wishes to handle it.
Subclasses of OnFlingListener can be used to implement custom fling behavior.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
onFling(int velocityX, int velocityY)
Override this to handle a fling given the velocities in both x and y directions. -
-
Method Detail
-
onFling
abstract boolean onFling(int velocityX, int velocityY)
Override this to handle a fling given the velocities in both x and y directions.Note that this method will only be called if the associated LayoutManager supports scrolling and the fling is not handled by nested scrolls first.
- Parameters:
velocityX
- the fling velocity on the X axisvelocityY
- the fling velocity on the Y axis
-
-
-
-