Wednesday, September 12, 2012

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

That is not the case. If I draw my view the status bar can sometimes obscure it if I dont' set the right height. 

Furthermore, there are some tablets where the status bar is at the top, and some tablets where it isn't. So I need to find a way not only to get the height of the status bar, but a way to determine where on the screen it is as well. 

On Wednesday, September 12, 2012 4:35:30 AM UTC-7, RichardC wrote:
I don't understand why you need to offset your view.  Doesn't your view automatically fill the available space and not overlap any other view/widget?

If it does please could you explain in more detail what you have done.

On Wednesday, September 12, 2012 12:25:53 PM UTC+1, 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