I dont know how to hide the tabBar. I tried -
1) window.tabBarHidden=true
2) window.top = -100
3) tabGroup.visible= false
3) tab.visible= false
Titanium.UI.setBackgroundColor('#000'); //tabgroup var tabGroup = Titanium.UI.createTabGroup({ visible: false }); //win var win1 = Titanium.UI.createWindow({ title: 'Tab 1', tabBarHidden: true, top : -100, backgroundColor:'#fff' }); //tab var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', visible: false, window:win1 }); //label var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win1.add(label1); tabGroup.addTab(tab1); tabGroup.open();
but nothing hides the tabBar in Android. Pls help.
2 Answers
// create the window var win1 = Titanium.UI.createWindow({ fullscreen: true, navBarHidden : true, exitOnClose: true, url:'xxxx.js' });
// open the window win1.open();
Try this ...
Are you just not wanting to use tabs? If so, don't create the tabGroup and just open the window directly, win1.open()
Your Answer
Think you can help? Login to answer this question!