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(); | |
| win.title = "Test"; | |
| var table = Ti.UI.createTableView({ | |
| top : 30 | |
| }); | |
| var scrollView = Ti.UI.createScrollView({ | |
| backgroundColor : '#fff', |
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({ | |
| title : 'My app', | |
| backgroundColor : '#fff', | |
| navBarHidden : true, | |
| orientationModes : [Titanium.UI.PORTRAIT] | |
| }); | |
| Titanium.UI.orientation = Titanium.UI.PORTRAIT; | |
| var testButton = Ti.UI.createButton({ | |
| title : 'Test Button', |
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 form_url = 'http://apps.priyo.com/jonopriyo/image.php'; | |
| var win = Ti.UI.createWindow({ | |
| layout : 'vertical', | |
| backgroundColor : '#fff' | |
| }); | |
| var btnPhoto = Ti.UI.createButton({ | |
| title : 'Select Photo' |
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({ | |
| layout : 'vertical', | |
| backgroundColor : '#fff' | |
| }); | |
| var aLabel = Ti.UI.createLabel({ | |
| text : L('hello'), | |
| }); | |
| win.add(aLabel); |
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 LoginOnBoarding1View() { | |
| var iphone5Flag = false; | |
| if (Ti.Platform.displayCaps.platformHeight === 568) {//iphone 5 | |
| iphone5Flag = true; | |
| } | |
| //create component instance | |
| var self = Ti.UI.createImageView({ | |
| left : 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 win = Ti.UI.createWindow({ | |
| backgroundColor : '#fff', | |
| layout : 'vertical', | |
| navBarHidden : false, | |
| title : 'Show Photo From Fhoto Galary' | |
| }); | |
| var url = "https://picasaweb.google.com/data/feed/base/user/115403892804643478218?alt=rss&kind=album&hl=en_US&imgmax=1600"; | |
| var xhr = Ti.Network.createHTTPClient({ | |
| onload : function() { |
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 : '#ddd', | |
| }); | |
| Ti.App.idleTimerDisabled = true; | |
| alert(Ti.App.getIdleTimerDisabled()); | |
| win.open(); |
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
| // Simulator Logs | |
| [INFO] : TC3303/1.0 (3.3.0.v20131220192449.95b274b) | |
| [INFO] : Event PlaybackState Fired: 1 | |
| [INFO] : Event PlaybackState Fired: 2 | |
| [INFO] : 4 | |
| [INFO] : timesSet 1 | |
| [INFO] : Event PlaybackState Fired: 1 | |
| [INFO] : Event PlaybackState Fired: 4 | |
| [INFO] : Event PlaybackState Fired: 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 win2 = Titanium.UI.createWindow({ | |
| backgroundColor : 'red', | |
| title : 'Red Window' | |
| }); | |
| var win3 = Titanium.UI.createWindow({ | |
| backgroundColor : 'blue', | |
| title : 'Blue Window' | |
| }); |
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'); | |
| Cloud.debug = true; | |
| var win = Ti.UI.createWindow({ | |
| backgroundColor : 'white', | |
| }); | |
| var post_photo = Ti.UI.createButton({ | |
| title : 'event query', |
OlderNewer