public static int getActionBarHeight ( Context context ) { int actionBarHeight = UIUtils . getThemeAttributeDimensionSize ( context , R . attr . actionBarSize ) ; if ( actionBarHeight == 0 ) { actionBarHeight = context . getResources ( ) . getDimensionPixelSize ( R . dimen . abc_action_bar_default_height_material ) ; } return actionBarHeight ; }
helper to calculate the actionBar height