获取ScrollView的onScrollListener
scrollView.getViewTreeObserver().addOnScrollChangedListener(new OnScrollChangedListener() { @Override public void onScrollChanged() { int scrollX = rootScrollView.getScrollX(); //for horizontalScrollView int scrollY = rootScrollView.getScrollY(); //for verticalScrollView //DO SOMETHING WITH THE SCROLL COORDINATES } });