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