The action bar can also change size with custom (OEM) themes.  So I would 
take a different approach and find the size of the usable window left to 
your application.  This is just a case of calling getWidth and getHeight on 
the root object of your view hierarchy.

On Tuesday, July 3, 2012 2:12:26 PM UTC+1, limtc wrote:
>
> I am faced with an issue - I need to know the action bar height when our 
> app is running on Android 3/4.
>
> However, ActionBar class might not exists as our minSdkVersion is 7, and 
> it seems that the height is not standard. I tested on 2 tablets and they 
> are both 56 - but on users reported that on Galaxy S2 our assumption is 
> wrong!
>
> What's the best way to get the action bar height in program when detected 
> that we are running on Android 3/4? Thanks!
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to