public void AttachToRecyclerView(RecyclerView recyclerView, IScrollDirectorListener scrollDirectionListener = null, RecyclerView.OnScrollListener onScrollListener = null) { var scrollDetector = new RecyclerViewScrollDetectorImpl(this); scrollDetector.ScrollDirectionListener = scrollDirectionListener; scrollDetector.OnScrollListener = onScrollListener; scrollDetector.ScrollThreshold = scrollThreshold; recyclerView.SetOnScrollListener(scrollDetector); }
public void AttachToRecyclerView (RecyclerView recyclerView, IScrollDirectorListener scrollDirectionListener = null, RecyclerView.OnScrollListener onScrollListener = null) { var scrollDetector = new RecyclerViewScrollDetectorImpl (this); scrollDetector.ScrollDirectionListener = scrollDirectionListener; scrollDetector.OnScrollListener = onScrollListener; scrollDetector.ScrollThreshold = scrollThreshold; recyclerView.SetOnScrollListener (scrollDetector); }