FaceTouch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.App.ISIPAD = Ti.Platform.osname == 'ipad'; | |
Ti.include('/programs/main.js'); | |
var ff = {}; | |
ff.app = {}; | |
ff.ui = {}; | |
// create tab group | |
ff.app.tabGroup = Titanium.UI.createTabGroup({ | |
backgroundColor: '#000' | |
}); | |
// create the main home screen (this function creates the home screen and is defined in main.js) | |
ff.app.mainwin = ff.ui.createMainWindow(); | |
// create loading window "splash" | |
ff.app.loadWin = Ti.UI.createWindow({ | |
top:0,left:0,right:0,bottom:0, | |
tabBarHidden: true, | |
navBarHidden: true, | |
backgroundImage: Titanium.App.ISIPAD ? 'images/background_splash_ipad.jpg' : 'images/background_splash.jpg' , | |
fullscreen: true, | |
url: 'programs/splash.js', | |
tabGroup: ff.app.tabGroup, // pass the main tabgroup | |
mainTab: tabMain // pass the tab where main is | |
}); | |
var tabLoad = Titanium.UI.createTab({ | |
window:ff.app.loadWin | |
}); | |
var tabMain = Titanium.UI.createTab({ | |
window:ff.app.mainwin | |
}); | |
ff.app.tabGroup.addTab(tabLoad); | |
ff.app.tabGroup.addTab(tabMain); | |
ff.app.tabGroup.setActiveTab(tabLoad); | |
ff.app.tabGroup.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi the main.js is online?