Code example for AbsListView.OnScrollListener

Methods: onScroll

0
	public void onScroll(AbsListView view, int firstVisibleItem,
			int visibleItemCount, int totalItemCount) {
		// send to user's listener 
		mTotalItemCount = totalItemCount;
		if (mScrollListener != null) {
			mScrollListener.onScroll(view, firstVisibleItem, visibleItemCount,
					totalItemCount);
		} 
	} 
 
	public void setXListViewListener(IXListViewListener l) {
		mListViewListener = l;
	} 
 
	/** 
	 * you can listen ListView.OnScrollListener or this one. it will invoke 
	 * onXScrolling when header/footer scroll back. 
	 */ 
	public interface OnXScrollListener extends OnScrollListener {
		public void onXScrolling(View view);
	}