titanium开发教程-03-03单个tab group
// 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", width:96, height:119 }); win.add(image); tabGroup.addTab(tab); // open tab group tabGroup.open();