Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Strange - getHeight() results in zero. Commented Aug 23, 2011 at 18:54
  • 1
    in my development, I noticed that it returns zero in onResume(). Hovever calling getActionBar().getHeight() when you actually need it returns a positive >0 value. Commented Apr 11, 2012 at 9:10
  • @tos the spec for the getHeight() says that it returns the current width for the ActionBar, which is probably 0 when the view is created Commented Oct 7, 2013 at 14:27