Code example for LinearLayout

Methods: invalidateoffsetLeftAndRight

0
	 * @param pos Relative position of all background icons. 
	 */ 
	private void moveBackground(int pos) {
		// only move background if there are more icons than visible 
		if (pos != 0 && mBackMoveFactor > 0) {
			mInverseSliderBackground.offsetLeftAndRight(pos);
			mInverseSliderBackground.invalidate();
		} 
	} 
 
	 
	/** 
	 * Moves the slider (and the background) to the correct position. Note that 
	 * the actual content switch is not done in here and must be manually called: 
	 * <pre>mSelectionChangedListener.onTabSelectionChanged(mCurrTabIndex, true);</pre> 
	 * @param tabIndex Tab index (first tab = 0) 
	 */ 
	private void snapTo(int tabIndex) {
		if (mBackMoveFactor > 0) { // background scrolls
			final float snapWidth;