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 Mustache = require("lib/mustache"); | |
var data ={ | |
"list":[ | |
{"value": "a1",top:0}, | |
{"value": "a2",top:50}, | |
{"value": "a3",top:100} | |
] | |
}; | |
var win = Ti.UI.createWindow({ | |
backgroundColor:'#FFF' |
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 win1 = Ti.UI.createWindow({backgroundColor:'black'}); | |
var totalScore = 0; | |
var scoreLabel = Titanium.UI.createLabel({ | |
top : 10, | |
left : 10, | |
height : 20, | |
width : 'auto', | |
color : 'white', | |
text : 'Score: ' + totalScore | |
}); |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// create tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// | |
// create base UI tab and root window | |
// | |
var win1 = Titanium.UI.createWindow({ |
NewerOlder