NappDrawer
NappDrawer copied to clipboard
Replace CenterWin with created Window using NappDrawer Titanium Android
Hi everyone, I am developing an Android app that uses NappDrawer.
I saw a documentation on iOS like this to change the ceterWindow with a window:
var mainWindow = NappDrawerModule.createDrawer({ centerWindow: navController, leftWindow: winLeft, rightWindow: winRight, closeDrawerGestureMode: NappDrawerModule.CLOSE_MODE_ALL, openDrawerGestureMode: NappDrawerModule.OPEN_MODE_ALL, leftDrawerWidth: 180, rightDrawerWidth: 220 });
var newWin = Ti.UI.createWindow({ backgroundColor: "#FF0000" }; mainWindow.setCenterWindow(newWin);
Now, how can I make it in NappDrawer implemented like the code above on Android? Thanks!
On Android, you have to use a View instead of a Window