titanium开发教程0303单个tab group

1在android下无法隐藏bar,在ios下可以

// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();

var win = Titanium.UI.createWindow({  
    title:"Main Window",
    backgroundColor:"#FFFFFF",
    navBarHidden:true, //Hide the nav bar for the window
    tabBarHidden:true //Hide the tab bar for the window
});
var tab = Titanium.UI.createTab({  
    icon:"KS_nav_views.png",
    title:"Main Tab",
    window:win
});
var image = Titanium.UI.createImageView({
	image:"images/exploreCalifornia.png",
	96,
	height:119
});

win.add(image);

tabGroup.addTab(tab);  

// open tab group
tabGroup.open();
原文地址:https://www.cnblogs.com/xiaozhanga4/p/2403100.html