public final void setNavigationWidth ( @ Px final int width ) { Condition . INSTANCE . ensureGreater ( width , 0 , "The width must be greater than 0" ) ; this . navigationWidth = width ; if ( ! isNavigationHidden ( ) ) { RelativeLayout . LayoutParams layoutParams = ( RelativeLayout . LayoutParams ) toolbar . getLayoutParams ( ) ; layoutParams . width = width ; toolbar . requestLayout ( ) ; } }
Sets the width of the navigation .