Code example for ViewPager.OnPageChangeListener

Methods: getPaddingRight, getWidth

0
		}else{ 
			maxOffset -= this.getPaddingRight();
			int offset = Math.max(positionOffsetPixels, -maxOffset);
			mCurrent.setPadding(-2 * offset, 0, 0, 0);
			 
			// Move next text out of the way. Slightly buggy. 
			/* 
			int overlapRight = mCurrent.getRight() - mNextGroup.getLeft() + mArrowPadding; 
			mNextGroup.setPadding(Math.max(0, overlapRight), 0, 0, 0); 
			mPreviousGroup.setPadding(0, 0, 0, 0); 
			*/ 
		} 
	} 
	 
	/** 
	 * Hide arrows if we can't scroll further 
	 *  
	 * @param position 
	 */ 
	void updateArrows(int position){
		if(mPrevArrow != null){