java.lang.Object | |
↳ | android.support.v7.widget.RecyclerView.OnScrollListener |
An OnScrollListener can be set on a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Callback method to be invoked when RecyclerView's scroll state changes.
| |||||||||||
Callback method to be invoked when the RecyclerView has been scrolled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Callback method to be invoked when RecyclerView's scroll state changes.
recyclerView | The RecyclerView whose scroll state has changed. |
---|---|
newState | The updated scroll state. One of SCROLL_STATE_IDLE ,
SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING .
|
Callback method to be invoked when the RecyclerView has been scrolled. This will be called after the scroll has completed.
This callback will also be called if visible item range changes after a layout calculation. In that case, dx and dy will be 0.
recyclerView | The RecyclerView which scrolled. |
---|---|
dx | The amount of horizontal scroll. |
dy | The amount of vertical scroll. |