Code example for AbsListView

Methods: getHeight, getAdapter, getFirstVisiblePosition

0
        OnScrollListener onScrollListener = new OnScrollListener() {
 
            @Override 
            public void onScrollStateChanged(AbsListView view, int scrollState) {
                if (scrollState == SCROLL_STATE_IDLE) {
                    int top = view.getHeight()/view.getAdapter().getCount()*view.getFirstVisiblePosition();
                    if (lv1 != view) {
                        lv1.scrollTo(0, top);
                    } 
                    if (lv2 != view) {
                        lv2.scrollTo(0, top);
                    } 
                    if (lv3 != view) {
                        lv3.scrollTo(0, top);
                    } 
                    if (lv4 != view) {
                        lv4.scrollTo(0, top);
                    } 
                    if (lv5 != view) {
                        lv5.scrollTo(0, top);
Connect your IDE to all the code out there  Get Codota for Java