I have the following code which recording the scroll Y position in my ListView whenever my activity is paused.
protected void onSaveInstanceState (Bundle outState) {
 super.onSaveInstanceState(outState); 
 int scroll = mListView.getScrollY(); 
 System.out.println (" scrollY" + scroll);
} 
But regardless where I scroll my ListView vertically, the value of getScrollY() always return 0. Can anyone please help me?
Thank you.