@Override
    public void onScrollChanged(int l, int t, int oldL, int oldT) {

        final boolean changed = t != oldT;

        final int size = changed
                ? mOnScrollChangedListeners.size()
                : 0;

        if (size > 0) {
            for (int i = 0; i < size; i++) {
                mOnScrollChangedListeners.get(i).onScrollChanged(t, oldT, mMaxScrollY);
            }
        }

        if (mCloseUpAlgorithm != null) {
            removeCallbacks(mIdleRunnable);
            if (!mSelfUpdateScroll && changed && !mIsTouchOngoing) {
                postDelayed(mIdleRunnable, mConsiderIdleMillis);
            }
        }

        super.onScrollChanged(l, t, oldL, oldT);
    }
@ Override public void onScrollChanged ( int l , int t , int oldL , int oldT ) { final boolean changed = t != oldT ; final int size = changed ? mOnScrollChangedListeners . size ( ) : 0 ; if ( size > 0 ) { for ( int i = 0 ; i < size ; i ++ ) { mOnScrollChangedListeners . get ( i ) . onScrollChanged ( t , oldT , mMaxScrollY ) ; } } if ( mCloseUpAlgorithm != null ) { removeCallbacks ( mIdleRunnable ) ; if ( ! mSelfUpdateScroll && changed && ! mIsTouchOngoing ) { postDelayed ( mIdleRunnable , mConsiderIdleMillis ) ; } } super . onScrollChanged ( l , t , oldL , oldT ) ; }
@see android.view.View#onScrollChanged(int, int, int, int)
@see ru.noties.scrollable.OnScrollChangedListener#onScrollChanged(int, int, int)
@see CloseUpAlgorithm