var view = Ti.UI.createView();

var label = Ti.UI.createlabel({
	text: "Hello",
	height: 32,
	width:150,
	top:120
});

var button = Ti.UI.createButton({
	title: "push ",
	top: 180,
	width: 100,
	height: 32
});
button.addEventListener("click", function(e){
	alert("you pushed me!");
});

view.add(label);

window.add(view);

function ApplicationTabGroup(Window) {
	//create module instance
	var self = Ti.UI.createTabGroup({
		backgroundColor: "blue"
	});
	
	var view = Ti.UI.createView({
		width: 150,
		height: 150,
		top:180 
	});
	
	// ラベルを作る
	var label = Ti.UI.createLabel({
		text: "Hello World" ,
		height: 12,
		width: 150, 
		top: 120,
		color: "red"
	});
	// ボタンをつくる
	var button = Ti.UI.createButton({
		title: "push me!",
		top: 100,
		width: 100,
		height: 32
	});
	button.addEventListener("click",function(e){
		alert("you pushed me!");
	});

	//create app tabs
	var win1 = new Window(L('home')),
		win2 = new Window(L('settings'));
	
	var tab1 = Ti.UI.createTab({
		title: L('home'),
		icon: '/images/KS_nav_ui.png',
		window: win1
	});
	win1.add(view);
	win1.containingTab = tab1;
	view.add(label);
	view.add(button);
	
	
	var tab2 = Ti.UI.createTab({
		title: L('settings'),
		icon: '/images/KS_nav_views.png',
		window: win2
	});
	win2.containingTab = tab2;
	
	self.addTab(tab1);
	self.addTab(tab2);
	
	return self;
};

module.exports = ApplicationTabGroup;

Add test