I'm having an issue where no matter what I try getActionBar().getHeight()
always returns 0. the action bar is clearly visible , so I don't know what might be causing the issue.
System.out.println(lP.height + " + " + getActionBar().getHeight());
lP.height = lP.height + getActionBar().getHeight();
System.out.println(lP.height);
there really isn't much code to show. the output looks like:
900 + 0
900
I have all of the app wrapped in a FrameLayout
, including the action bar, so that I can place items on top of it, but I know I can still get the right action bar reference using getActionBar()
because I can see the background changing when I use getActionBar().setBackgroundDrawable(mDrawable)
. just for some reason getHeight()
always returns 0.