public final class RecyclerToListViewScrollListener extends RecyclerView.OnScrollListener
RecyclerView.OnScrollListener
events to
AbsListView
scroll events.
Requires that the the recycler view be using a LinearLayoutManager
subclass.
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_SCROLL_STATE |
Constructor and Description |
---|
RecyclerToListViewScrollListener(AbsListView.OnScrollListener scrollListener) |
Modifier and Type | Method and Description |
---|---|
void |
onScrolled(RecyclerView recyclerView,
int dx,
int dy) |
void |
onScrollStateChanged(RecyclerView recyclerView,
int newState) |
public static final int UNKNOWN_SCROLL_STATE
public RecyclerToListViewScrollListener(@NonNull AbsListView.OnScrollListener scrollListener)
public void onScrollStateChanged(RecyclerView recyclerView, int newState)
onScrollStateChanged
in class RecyclerView.OnScrollListener
public void onScrolled(RecyclerView recyclerView, int dx, int dy)
onScrolled
in class RecyclerView.OnScrollListener