public static void setDrawerVerticalPadding ( View v ) { int verticalPadding = v . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . material_drawer_vertical_padding ) ; v . setPadding ( verticalPadding , 0 , verticalPadding , 0 ) ; }
helper to set the vertical padding to the DrawerItems this is required because on API Level 17 the padding is ignored which is set via the XML