public abstract static class RecyclerView.OnFlingListener extends Object
Subclasses of RecyclerView.OnFlingListener
can be used to implement custom fling behavior.
Constructor and Description |
---|
OnFlingListener() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
onFling(int velocityX,
int velocityY)
Override this to handle a fling given the velocities in both x and y directions.
|
public abstract boolean onFling(int velocityX, int velocityY)
RecyclerView.LayoutManager
supports scrolling and the fling is not handled by nested scrolls first.velocityX
- the fling velocity on the X axisvelocityY
- the fling velocity on the Y axis