library/src/main/java/com/jpardogo/listbuddies/lib/views/ListBuddiesLayout.java
@Override
    public void onListScroll(View view, float deltaY) {
        int speed;
        if (view.getId() == mListViewLeft.getId() && !isLeftListEnabled) {
            speed = getSpeed(false, deltaY);

            mListViewRight.smoothScrollBy(speed, 0);
        } else if (view.getId() == mListViewRight.getId() && !isRightListEnabled) {
            speed = getSpeed(true, deltaY);
            mListViewLeft.smoothScrollBy(speed, 0);
        }
    }
@Override
    public void onListScroll(View view, float deltaY) {
        int speed;
        if (view.getId() == mListViewLeft.getId() && !isLeftListEnabled) {
            speed = getSpeed(false, deltaY);

            mListViewRight.smoothScrollBy(speed, 0);
        } else if (view.getId() == mListViewRight.getId() && !isRightListEnabled) {
            speed = getSpeed(true, deltaY);
            mListViewLeft.smoothScrollBy(speed, 0);
        }
    }
@ Override public void onListScroll ( View view , float deltaY ) { int speed ; if ( view . getId ( ) == mListViewLeft . getId ( ) && ! isLeftListEnabled ) { speed = getSpeed ( false , deltaY ) ; mListViewRight . smoothScrollBy ( speed , 0 ) ; } else if ( view . getId ( ) == mListViewRight . getId ( ) && ! isRightListEnabled ) { speed = getSpeed ( true , deltaY ) ; mListViewLeft . smoothScrollBy ( speed , 0 ) ; } }
Receives the distance scroll on listView.
Receives the distance scroll on listView .