On Tue, Jul 3, 2012 at 4:45 PM, limtc <[email protected]> wrote: > Do you mind showing me a sample code on how this is done? (to get the action > bar size)
I'm afraid you misunderstand - if you are trying to find out the action bar height just to subtract it from the screen height and see how much space is left for your app to draw into, you can get that directly by calling getWidth() & getHeight() on your root View. Or alternatively, if you're using GL with GLSurfaceView, you get the same information as parameters of your Renderer's onSurfaceChanged(). Either way, you don't have to care what the action bar's geometry is, or if there even is an action bar at all. My minSdkVersion is 7, too, so trust me, this works. :-) -- 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

