Android: ListView.getScrollY() – does it work?

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();

Leave a Comment