aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/app.js
blob: 2dba46ebaf4d03731e9d1cde3e80cc39a490a3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Create a tab group to contain our views
var tabGroup = Titanium.UI.createTabGroup();


// Create the main, root window
var search_win = Titanium.UI.createWindow({
    title: 'Search Twitter',
    backgroundColor: '#fff',
    tabBarHidden: true,      // hide the tab bar
    url: 'search.js'         // create a new context for this window in 'search.js'
});
// Create the tab to contain our search window
var search_tab = Titanium.UI.createTab({
    title: 'Search',
    icon: 'KS_nav_views.png',
    window: search_win       // use search_win in this tab
});


//  add tabs
tabGroup.addTab(search_tab);

// open tab group
tabGroup.open();