Reputation: 143
I'm starting with Nativescript (javascript) and I have a problem with the action bar in android. When I create an action bar as follows:
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<Page.actionBar>
<ActionBar title="My ActionBar"/>
</Page.actionBar>
<!-- page content ... -->
</Page>
The action bar is created under the status bar of the phone (no css has been done):
Action bar under the status bar
1) Am I missing something or this is the normal behaviour?
2) Also the action bar size is much bigger than all the other app. Is the default height bigger than the standard?
Thank you
Upvotes: 0
Views: 1885
Reputation: 9670
The Page has a property called backgroundSpanUnderStatusBarto control whether the content can span under the status bar or not.
The size should be standard by default. Still, you can create custom layout for your action-bar or use a CSS theme
Upvotes: 1