Code example for AbsListView

Methods: getChildAt, getFirstVisiblePosition

0
	public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)
	{} 
 
	public void onScrollStateChanged(AbsListView view, int scrollState)
	{ 
		int scrollPosition = view.getFirstVisiblePosition();
		int scrollOffset   = view.getChildAt(0).getTop();
		adapter.setScrollPosition(scrollPosition, scrollOffset);
	} 
 
	public void onScheduleChanged() 
	{ 
		this.getLoaderManager().restartLoader(0, null, this);
		 
	} 
 
}