This file contains hidden or 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
| var Cloud = require('ti.cloud'); | |
| var fb = require('facebook'); | |
| fb.appid = "appid"; | |
| fb.permissions = ['publish_stream', 'read_stream']; | |
| var win = Ti.UI.createWindow({ | |
| title : "ACS Social Integrations" | |
| }); | |
| var fbSignupBtn = Ti.UI.createButton({ |
This file contains hidden or 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
| var win = Ti.UI.createWindow(); | |
| var view=Ti.UI.createView({ | |
| width:Ti.UI.SIZE, | |
| height:Ti.UI.SIZE, | |
| backgroundColor:'#fff' | |
| }); | |
| win.addEventListener('open', function(){ | |
| Ti.API.info('View Width:'+view.size.width + ', View Height:' + view.size.height); |
This file contains hidden or 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
| var Admob = require('ti.admob'); | |
| var adMobView = Admob.createAdMobView({ | |
| publisherId: "<<YOUR PUBLISHER ID HERE>>", | |
| testing:false, // default is false | |
| top: 0, //optional | |
| left: 0, // optional | |
| right: 0, // optional | |
| bottom: 0, // optional | |
| adBackgroundColor:"FF8800", // optional |
This file contains hidden or 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
| var androidMenu=require('yy.hasmenu'); | |
| if (androidMenu.hasMenu) { | |
| alert("Has a hardware button"); | |
| } | |
| else { | |
| alert("Uses a system bar, should probably add 48dp"); | |
| } |
This file contains hidden or 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
| var mainWin = Ti.UI.createWindow({ | |
| backgroundColor: "blue" | |
| }); | |
| var btn = Ti.UI.createButton({ | |
| title: "Click", | |
| width: 200, | |
| height: 50, | |
| backgroundColor: "#fff", | |
| color: "#000" | |
| }); |
This file contains hidden or 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.UI.setBackgroundColor('#000'); | |
| var win1 = Titanium.UI.createWindow({ | |
| title:'Tab 1', | |
| backgroundColor:'#fff' | |
| }); | |
| var aButton = Ti.UI.createButton({ | |
| title : 'Camera', | |
| height : 50, |
This file contains hidden or 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
| var win = Ti.UI.createWindow(); | |
| var like = Titanium.UI.createImageView({ | |
| image : '/image1.png', | |
| left : 50, | |
| top : 50, | |
| height : 50, | |
| width : 50 | |
| }); | |
This file contains hidden or 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
| var win = Ti.UI.createWindow({ | |
| backgroundColor : "gray" | |
| }); | |
| var btn = Ti.UI.createButton({ | |
| title : "open email dialogue", | |
| top : 100, | |
| left : 100, | |
| height : 150, | |
| width : 150 |
This file contains hidden or 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
| var win = Titanium.UI.createWindow({ | |
| backgroundColor:'#fff' | |
| }); | |
| var webView = Ti.UI.createWebView({ | |
| url:'/localHtml.html', | |
| backgroundColor:'transparent' | |
| }); | |
| win.add(webView); | |
| Ti.App.addEventListener("appC", function(e) { | |
| var win1 = Titanium.UI.createWindow({ |
This file contains hidden or 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
| var state = true; | |
| var window = Titanium.UI.createWindow({ | |
| backgroundColor: '#ffffff', | |
| height: Ti.UI.FILL, | |
| width: Ti.UI.FILL | |
| }); | |
| var view = Ti.UI.createView({ | |
| top:165, | |
| width:300, |
OlderNewer