NappDrawer icon indicating copy to clipboard operation
NappDrawer copied to clipboard

Replace CenterWin with created Window using NappDrawer Titanium Android

Open ChunAllen opened this issue 11 years ago • 1 comments

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!

ChunAllen avatar Feb 11 '14 16:02 ChunAllen

On Android, you have to use a View instead of a Window

caspahouzer avatar Apr 22 '14 09:04 caspahouzer