Code example for AbsListView.OnScrollListener

Methods: onScroll

	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,
	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);
Experience pair programming with AI  Get Codota for Java