public static int getActionBarSize ( Context context ) { TypedArray a = context . obtainStyledAttributes ( sActionBarSize ) ; int size = a . getDimensionPixelSize ( 0 , 0 ) ; a . recycle ( ) ; return size ; }
Get the ActionBar height in the Context s theme .