public void AttachToScrollView(ObservableScrollView scrollView, IScrollDirectorListener scrollDirectionListener = null, IOnScrollChangedListener onScrollChangedListener = null) { var scrollDetector = new ScrollViewScrollDetectorImpl(this); scrollDetector.ScrollDirectionListener = scrollDirectionListener; scrollDetector.OnScrollChangedListener = onScrollChangedListener; scrollDetector.ScrollThreshold = scrollThreshold; scrollView.OnScrollChangedListener = scrollDetector; }
public void AttachToScrollView (ObservableScrollView scrollView, IScrollDirectorListener scrollDirectionListener = null, IOnScrollChangedListener onScrollChangedListener = null) { var scrollDetector = new ScrollViewScrollDetectorImpl (this); scrollDetector.ScrollDirectionListener = scrollDirectionListener; scrollDetector.OnScrollChangedListener = onScrollChangedListener; scrollDetector.ScrollThreshold = scrollThreshold; scrollView.OnScrollChangedListener = scrollDetector; }