Height of usable view on mobile device
I'm embarrassed that after searching a few (hours) I am unable to determine how many pixels are available for my use.
Lets say it's an iPhone with a 320x480 physical display.
example 1: I have a title bar and a tab group.
Every Height parameter I've checked reports a height of 460
Titanium.API.debug("Window Height: " + tab1.window.height);
Titanium.API.debug("Tab Group Height: " + tabGroup.view.height);
Titanium.API.debug("Tab View Height: " + tab1.view.height);
example 2: I remove the title bar and only have a tab group
Still, every Height parameter reports 460.
So my question is… how do I determine the height of the tab bar, title bar and client view area that I have remaining to provide UI content.
Thanks for any help
-Steve
2 Answers
-
Status Bar: 20px
Navigation Bar: 44px
Tab Bar: 50px -
Status Bar: 20px
Navigation Bar: 44px
Tab Bar: 50px