Code example for AbsListView

Methods: getLastVisiblePosition

0
 
	@Override 
	public void onScroll(AbsListView view, int firstVisibleItem,
			int visibleItemCount, int totalItemCount) {
		if (mUpdating == false && totalItemCount != 0
				&& view.getLastVisiblePosition() == totalItemCount - 1) {
			mUpdating = true;
			DataFetcher.instance().getList(mCurrentPage++,
					new LoadMoreJSONListener()); 
		} 
 
	} 
 
	@Override 
	public void onScrollStateChanged(AbsListView view, int scrollState) {
 
	} 
 
	private class LoadMoreJSONListener extends JsonHttpResponseHandler { 
 
		private View mFooterView;