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;
        }
コード例 #2
0
 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;
 }