简体   繁体   中英

Titanium nl.fokkezb.drawer change statusbarstyle

How I can change the status bar style of the drawer? I put this code in my index.tss file but doesn't work...

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

You have to do something like this 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]
})

Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM