Titanium nl.fokkezb.drawer更改statusbarstyle

时间:2014-04-10 14:18:12

标签: ios titanium titanium-alloy drawer

如何更改抽屉的状态栏样式?我把这段代码放在我的index.tss文件中但不起作用......

"#drawer": {
    openDrawerGestureMode: "OPEN_MODE_ALL",
    closeDrawerGestureMode: "CLOSE_MODE_MARGIN",
    leftDrawerWidth: 200,
    statusBarStyle: "STATUSBAR_BLACK"
},

1 个答案:

答案 0 :(得分:-1)

你必须做类似这样的事情。index.js

var mainWindow = NappDrawerModule.createDrawer({
    centerWindow: $.navController, 
    leftWindow: $.winLeft,
    rightWindow: $.winRight,
    closeDrawerGestureMode: NappDrawerModule.CLOSE_MODE_ALL,
    openDrawerGestureMode: NappDrawerModule.OPEN_MODE_ALL,
    leftDrawerWidth: 180,
    rightDrawerWidth: 220,
    statusBarStyle: NappDrawerModule.STATUSBAR_WHITE,
    orientationModes: [Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT]
})

由于