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

2012-09-12 Thread hwrdprkns
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-

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

2012-09-12 Thread Kostya Vasilyev
If you've got a view (any view) within your activity's content, you can call: view.getWindowVisibleDisplayFrame http://developer.android.com/reference/android/view/View.html#getWindowVisibleDisplayFrame(android.graphics.Rect) >>> Retrieve the overall visible display size in which the window thi

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

2012-09-12 Thread hwrdprkns
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

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

2012-09-12 Thread hwrdprkns
You are totally right, the status bar didn't end up mattering at all because out window is always drawn out of it. 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 sp

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

2012-09-12 Thread RichardC
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: > > G