Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam sjudd

  • Google
  • Mountain View, CA
View GitHub Profile
@sjudd
sjudd / RecyclerToListViewScrollListener
Last active Sep 21, 2018
RecyclerView scroll listener to AbsListView scroll listener
View RecyclerToListViewScrollListener
public class RecyclerToListViewScrollListener extends RecyclerView.OnScrollListener {
private final AbsListView.OnScrollListener scrollListener;
private int lastFirstVisible = -1;
private int lastVisibleCount = -1;
private int lastItemCount = -1;
public RecyclerToListViewScrollListener(AbsListView.OnScrollListener scrollListener) {
this.scrollListener = scrollListener;
}