Code example for ViewPager

Methods: canScroll

0
	@Override 
	protected boolean canScroll(View view, boolean checkV, int dx, int x, int y) { 
		if (view instanceof CustomWebView) { 
			return ((CustomWebView) view).canScrollHorizontal(-dx); 
		} else { 
			return super.canScroll(view, checkV, dx, x, y); 
		} 
	} 
}