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: 'blue' | |
| }); | |
| var actInd = Titanium.UI.createActivityIndicator({ | |
| bottom:100, | |
| height:50, | |
| width:10, | |
| style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN, | |
| font: {fontFamily:'Helvetica Neue', fontSize:15,fontWeight:'bold'}, |
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: 'blue', | |
| layout: 'vertical' | |
| }); | |
| var testFile; | |
| var label = Ti.UI.createLabel({ | |
| top: 10, | |
| height: 100, |
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: 'blue' | |
| }); | |
| var images = []; | |
| for (var c=0;c<30;c++) | |
| { | |
| var iv = Ti.UI.createImageView({ | |
| image: 'imageview/'+c+'.jpg', | |
| borderColor: 'red', |
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: 'blue' | |
| }); | |
| var getImage = function(e){ | |
| var iv = Ti.UI.createImageView({ | |
| image: 'http://example.com/'+e+'.jpg', | |
| borderColor: 'red', | |
| borderWidth: 5, | |
| top: 1000 |
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', | |
| fullscreen: true, | |
| orientationModes: [1,2,3,4] | |
| }); | |
| var image = Ti.UI.createImageView({ | |
| width:50, | |
| height:100, | |
| image:"http://images.allocine.fr/r_160_214/b_1_cfd7e1/medias/nmedia/18/35/94/63/18458444.jpg", |
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' | |
| }); | |
| win.open(); | |
| var label = Ti.UI.createLabel({ | |
| top: 20, | |
| height: 200, | |
| width: 200, | |
| text: "Background the app" | |
| }); |
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 win1 = Ti.UI.createWindow({ | |
| backgroundColor : 'white', | |
| fullscreen: true, | |
| exitOnClose: true | |
| }); | |
| var button = Ti.UI.createButton({ | |
| title : 'Open', | |
| width : 150, | |
| height : 40, |
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' | |
| }); | |
| var testButton = Ti.UI.createButton({ | |
| title : "Copy Folder", | |
| top : 20, | |
| height : 50, | |
| width : 250, |
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
| <!-- add android:screenOrientation="portrait" to the main activity --> | |
| <!-- This sets the splash screen --> | |
| <activity android:name=".Test1Activity" android:screenOrientation="portrait" | |
| android:label="Test1" android:theme="@style/Theme.Titanium" | |
| android:configChanges="keyboardHidden|orientation"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> |
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
| <android xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <manifest> | |
| <supports-screens android:anyDensity="false"/> | |
| <application android:debuggable="true"> | |
| <activity android:alwaysRetainTaskState="true" | |
| android:name=".TitestActivity" | |
| android:configChanges="keyboardHidden|orientation" | |
| android:screenOrientation="portrait" | |
| android:theme="@style/Theme.Titanium"> | |
| <intent-filter> |