Wednesday, September 12, 2012

[android-developers] Re: Find location of status bar.

For future people who might need a solution to this problem -- I posted my question on StackOverflow (and then I answered it). Hope it's useful to you.

http://stackoverflow.com/questions/12379423/figure-out-whether-status-bar-is-at-top-or-bottom



On Wednesday, September 12, 2012 4:25:53 AM UTC-7, hwrdprkns wrote:
Greetings, 

I'm using DecorView to insert my own sliding menu (like Facebook, Spotify, etc) but I'm wondering if its possible to tell where the status bar is, as I need to offset my view appropriately. For example, on tablets the status bar is usually  at the bottom, except on the Nexus 7 where it's at the top. Rather than writing device-specific code, I was wondering if anyone would be able to tell me a general method by which I can tell if the status bar is at the top or bottom of the window. 

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate