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
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 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 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 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({ |
NewerOlder