Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mainWin = Ti.UI.createWindow({//url:"main.js",
- title:'Decks',
- barColor: "#000",
- tabBarHidden: true});
- var decksTab = Ti.UI.createTab({title: "Decks", window: mainWin});
- var tabGroup = Titanium.UI.createTabGroup();
- tabGroup.addTab(decksTab);
- mainWin.tab = decksTab;
- tabGroup.open();
- mainWin.orientationModes = [
- Titanium.UI.PORTRAIT,
- Titanium.UI.LANDSCAPE_LEFT,
- Titanium.UI.LANDSCAPE_RIGHT
- ];
- var b = Ti.UI.createButton({title:"foo",
- left:10,
- right:10,
- top:10,
- bottom:10});
- mainWin.add(b);
- var b2 = Ti.UI.createButton({title:"bar",
- left:10,
- right:10,
- top:10,
- visible:false,
- bottom:10});
- mainWin.add(b2);
- b.addEventListener("click", function () {
- Titanium.UI.iPhone.hideStatusBar();
- b2.show();
- b.hide();
- });
- b2.addEventListener("click", function () {
- Titanium.UI.iPhone.showStatusBar();
- b.show();
- b2.hide();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement