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
(function(){ | |
var async = require('async'); | |
// 順次処理 | |
async.series([ | |
function(callback){ | |
var message = 'one'; | |
Ti.API.info(message); | |
callback(null, message); |
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
(function(){ | |
var win = Ti.UI.createWindow(); | |
// view 1 枚目 | |
var view1 = Ti.UI.createView({ | |
backgroundColor: '#ffffbb' | |
}); | |
// view 1 枚目にのせるニセボタン | |
var button1 = Ti.UI.createView({ |
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 Container = function(){ | |
var self = Ti.UI.createScrollableView({ | |
top: 100, | |
right: 20, | |
bottom: 20, | |
left: 20, | |
backgroundColor: '#999' | |
}); | |
var pane_red = Ti.UI.createView({ |
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
Show hidden characters
{ | |
"selector": "source.ts", | |
"cmd": ["tsc", "$file"], | |
"osx": { | |
"path": "/usr/local/bin:/opt/local/bin" | |
} | |
} |
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
# Facebook API なクラスのお供に。 | |
import urllib | |
import simplejson | |
def fql_multi(self, access_token, **queries): | |
args = { | |
'queries': simplejson.dumps(queries), | |
'format': 'json', | |
'access_token': access_token |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var win = Titanium.UI.createWindow(); | |
win.hideTabBar(); | |
win.navBarHidden = true; | |
var tab = Titanium.UI.createTab({window: win}); | |
var Z_INDEX_TOP = 3; | |
var Z_INDEX_BOTTOM = 0; |
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 tabGroup = Titanium.UI.createTabGroup(); | |
var win = Titanium.UI.createWindow({ | |
backgroundColor: '#D8D8D8', | |
barColor: '#000000', | |
title: 'じゃいけん' | |
}); | |
var tab = Titanium.UI.createTab({ | |
window: win |
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 tabGroup = Titanium.UI.createTabGroup(); | |
// tab に埋め込む window。hoge.js から読み込む | |
var hoge = Titanium.UI.createWindow({ | |
url: 'hoge.js' | |
}); | |
// tab を作る | |
var tab = Titanium.UI.createTab({ | |
title: 'hoge', |
NewerOlder