Code example for ViewPager

Methods: getCurrentItemonInterceptTouchEvent

	public boolean onInterceptTouchEvent(MotionEvent event) { 
		// If a touch event is intercepted on page 1, don't do anything. 
		// This will enable scoll on blank areas, cover art, but not on buttons/seekbars 
		// If we're on page 1, all that's displayed is a list that plays nicely with ViewPager 
		if (getCurrentItem() == 0) 
			return false; 
		return super.onInterceptTouchEvent(event); 
Connect your IDE to all the code out there  Get Codota for Java