Ios Alloy nl.fokkezb.drawer小部件更改状态BarStyle
我需要将statusbarstyle更改为黑色,我不知道如何。。。我试着把 Index.xml:Ios Alloy nl.fokkezb.drawer小部件更改状态BarStyle,ios,titanium,titanium-alloy,drawer,Ios,Titanium,Titanium Alloy,Drawer,我需要将statusbarstyle更改为黑色,我不知道如何。。。我试着把 Index.xml: <Alloy> <Widget id="drawer" src="nl.fokkezb.drawer"> <Window role="leftWindow" module="xp.ui"> </Window> <NavigationWindow id="navWindow" platfor
<Alloy>
<Widget id="drawer" src="nl.fokkezb.drawer">
<Window role="leftWindow" module="xp.ui">
</Window>
<NavigationWindow id="navWindow" platform="ios" role="centerWindow">
<Window >
<LeftNavButton>
<Button id="leftButton" onClick="toggleLeft">ICON</Button>
</LeftNavButton>
<RightNavButton>
<Button id="rightButton">ICON</Button>
</RightNavButton>
</Window>
</NavigationWindow>
<View platform="android" role="centerWindow">
</View>
</Widget>
</Alloy>
接受以下值之一:
"#drawer": {
openDrawerGestureMode: "OPEN_MODE_ALL",
closeDrawerGestureMode: "CLOSE_MODE_ALL",
leftDrawerWidth: 200,
exitOnClose: true,
navBarHidden: true,
fullscreen: true,
statusBarStyle: Ti.UI.iPhone.StatusBar.OPAQUE_BLACK,
}
还要确保#drawer指向窗口视图元素。我不知道你的小部件抽屉是如何工作的。这在iPad上工作吗?因为我想在Ipad上使用这个属性。根据文档,从Tianium SDK 3.1.3开始,iPhone和Ipad都支持这个属性。
"#drawer": {
openDrawerGestureMode: "OPEN_MODE_ALL",
closeDrawerGestureMode: "CLOSE_MODE_ALL",
leftDrawerWidth: 200,
exitOnClose: true,
navBarHidden: true,
fullscreen: true,
statusBarStyle: Ti.UI.iPhone.StatusBar.OPAQUE_BLACK,
}