title: Android ListView current scroll location Y pixels
body: <p>I'm trying to detect when a list view is scrolled beyond certain fixed threshold in pixels (half way through the first item). Unfortunately listview's getScrollY() seems to always return 0 instad of the scroll position. Is there any way to get the actual scroll location by pixel?</p>
  
  <p>Here's the code I tried to use but as said it only returns 0.</p>
  
  <pre><code>getListView().setOnScrollListener(new AbsListView.OnScrollListener() {
      public void onScroll(AbsListView view, int firstVisibleItem,
                           int visibleItemCount, int totalItemCount) {
          Log.d("scroll", "scroll: " + getListView().getScrollY());
      }
  
      public void onScrollStateChanged(AbsListView view, int scrollState) {
          if (scrollState == 0)
          Log.d("scroll", "scrolling stopped");
      }
  });
  </code></pre>