aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/app.js
blob: 134abeb34aad51d0158a4a3fc85e24fa0102dca8 (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: 'RocheTwit',
    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: 'Recherche',
    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();