Code example for ViewPager

Methods: setOnPageChangeListener

0
		 
		if(listener == null)
			listener = new BaseBlockingPageChangeListener();
		 
		mBlockingPageChangeListener = listener;
		super.setOnPageChangeListener(mBlockingPageChangeListener);
	} 
	 
	/** 
	 * Initialize the view. 
	 */ 
	private void init() { 
		 
		setOnBlockingPageChangeListener(new BaseBlockingPageChangeListener()); 
	} 
	 
	/** 
	 * <p>Base implementation of the {@link OnBlockingPageChangeListener} interface.</p> 
	 * <p>This class offers the basic behavior to allow or deny navigation, based on it's 
	 * pager's settings.</p> 
	 * <p>Subclasses extending this one, which implements any of it's methods, should