RecyclerView.OnScrollListener

public static abstract class RecyclerView.OnScrollListener
extends Object

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.OnScrollListener


An OnScrollListener can be added to a RecyclerView to receive messages when a scrolling event has occurred on that RecyclerView.

Summary

Public constructors

OnScrollListener()

Public methods

void onScrollStateChanged(RecyclerView recyclerView, int newState)

Callback method to be invoked when RecyclerView's scroll state changes.

void onScrolled(RecyclerView recyclerView, int dx, int dy)

Callback method to be invoked when the RecyclerView has been scrolled.

Inherited methods

Public constructors

OnScrollListener

public OnScrollListener ()

Public methods

onScrollStateChanged

public void onScrollStateChanged (RecyclerView recyclerView, 
                int newState)

Callback method to be invoked when RecyclerView's scroll state changes.

Parameters
recyclerView RecyclerView: The RecyclerView whose scroll state has changed.

newState int: The updated scroll state. One of