titanium开发教程-03-03单个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",
	width:96,
	height:119
});

win.add(image);

tabGroup.addTab(tab);  

// open tab group
tabGroup.open();
posted @ 2012-03-17 13:18  校长阿四  阅读(412)  评论(0编辑  收藏  举报