i make simple titanium mobile application. at first i want to open new window when i press some button. when i use modal window, it can show a title bar so i can put back button in there
here's my code :
var MainMenu = require('ui/common/option2/MainMenu'); var mainMenuWindow = Titanium.UI.createWindow({ title:'Main Menu', backgroundColor:'white', modal:true, navBarHidden:Ti.Platform.osname ==='android' ? true : false }); var mainMenu = new MainMenu(mainMenuWindow); mainMenuWindow.add(mainMenu); mainMenuWindow.open();but if i clear modal:true the title bar is not shown and i don't have any idea how to add title bar on the window..
has anyone know how to open window (lightweight window) with title bar inside the window?
i've tried using tabGroup to tweak that problem.. in iOS, the tab bar can be hidden, so it will show the title bar without the tab bar, but not in android. in android, the tab bar is still shown..
really need suggestion here.. many thanks..
2 Answers
I think you can open it as Tab group but with single window for android.
hi,
for iOS you can use navigatioGroup to open window with navigationBar for android you can do what Visuddha suggested...
Your Answer
Think you can help? Login to answer this question!