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
| { | |
| "fighters": [ | |
| { | |
| "name": "Muhammad Ali", | |
| "nickname": "The Greatest" | |
| }, | |
| { | |
| "name": "Chuck Liddell", | |
| "nickname": "The Iceman" | |
| }, |
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
| // ScrollView.js | |
| function ScrollView(args){ | |
| var args = args || {}; | |
| var nearBottom = false; | |
| var loadingView = Ti.UI.createView({ | |
| height:60, | |
| width: Ti.UI.SIZE, | |
| backgroundColor:"transparent", | |
| visible:false |
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({ | |
| width:'100%', | |
| height:'100%' | |
| }); | |
| win.open(); | |
| function circularProgressBar(options) | |
| { |
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:'white' | |
| }); | |
| var circle = Titanium.UI.createView({ | |
| height:200, | |
| width:200, | |
| backgroundColor:'#336699', | |
| top:10, |
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
| Ti.UI.setBackgroundColor('#000'); | |
| var win = Ti.UI.createWindow({ | |
| backgroundColor: 'white', | |
| exitOnClose: true, | |
| fullscreen: false, | |
| title: 'TableView Demo' | |
| }); | |
| // generate random number, used to make each row appear distinct for this example | |
| function randomInt(max){ |
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
| http://www.pastie.org/2303978#21,23 |
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'); | |
| // TAB GRUBU OLUŞTUR | |
| var tabGroup = Titanium.UI.createTabGroup(); | |
| // ANA WİNDOW OLUŞTURULUR BUNU HTML'DE BODY GİBİ DÜŞÜNEBİLİRİSNİZ | |
| var win1 = Titanium.UI.createWindow({ | |
| title:'Tab 1', | |
| backgroundColor:'#fff' | |
| }); | |
| var data = [ | |
| {title:'Window 2 Content 1'}, |
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:'white', title:'SWIPEABLE CELL'}) | |
| var navWin = Ti.UI.iOS.createNavigationWindow({ | |
| window:win | |
| }) | |
| function genWindow(module) { | |
| var ListTest = require(module); | |
| var win = new ListTest(); |