getScrollY() is actually a method on View, not ListView. It is referring to the scroll amount of the entire view, so it will almost always be 0.
If you want to know how far the ListView's contents are scrolled, you can use listView.getFirstVisiblePosition();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…