Code example for AbsListView.OnScrollListener

Methods: onScroll

0
	@Override 
	public void onScroll(AbsListView view, int first, int visibleItemCount, int totalItemCount) {
		 
		checkScrolledBottom(view, scrollState);
		 
		if(osl != null) osl.onScroll(view, first, visibleItemCount, totalItemCount);
		 
	} 
 
	public int getScrollState(){ 
		return scrollState;
	} 
 
	public void forward(OnScrollListener listener){
		this.osl = listener;
	} 
	 
	private int lastBottom;
	private void checkScrolledBottom(AbsListView view, int scrollState){
		 
		int cc = view.getCount();