public void setGravity ( int gravity ) { DrawerLayout . LayoutParams params = ( DrawerLayout . LayoutParams ) getSlider ( ) . getLayoutParams ( ) ; params . gravity = gravity ; getSlider ( ) . setLayoutParams ( params ) ; mDrawerBuilder . mDrawerGravity = gravity ; }
sets the gravity for this drawer .