Code example for AbsListView.OnScrollListener

Methods: onScroll

0
	@Override 
	public void onScrollStateChanged(AbsListView view, int scrollState) {
		switch (scrollState) {
			case OnScrollListener.SCROLL_STATE_IDLE:
				imageLoader.resume();
				break; 
			case OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:
				if (pauseOnScroll) {
					imageLoader.pause();
				} 
				break; 
			case OnScrollListener.SCROLL_STATE_FLING:
				if (pauseOnFling) {
					imageLoader.pause();
				} 
				break; 
		} 
		if (externalListener != null) {
			externalListener.onScrollStateChanged(view, scrollState);
		} 
Experience pair programming with AI  Get Codota for Java