public void setPadding ( float padding , Layout . Axis axis ) { OrientedLayout layout = null ; switch ( axis ) { case X : layout = mShiftLayout ; break ; case Y : layout = mShiftLayout ; break ; case Z : layout = mStackLayout ; break ; } if ( layout != null ) { if ( ! equal ( layout . getDividerPadding ( axis ) , padding ) ) { layout . setDividerPadding ( padding , axis ) ; if ( layout . getOrientationAxis ( ) == axis ) { requestLayout ( ) ; } } } }
Sets padding between the pages