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 mainWindow, tableview; | |
| function setupWindow() { | |
| mainWindow = Titanium.UI.createWindow({ | |
| title : 'Tab 1', | |
| 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
| Titanium.Facebook.appid = "134793934930"; | |
| Titanium.Facebook.permissions = [ | |
| 'publish_stream', | |
| 'read_stream', | |
| 'user_photos', | |
| 'friends_photos' | |
| ]; |
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(); | |
| var tableview = Ti.UI.createTableView(); | |
| var section = Titanium.UI.createTableViewSection(); | |
| section.headerTitle = "Hello"; | |
| var row1 = Titanium.UI.createTableViewRow({title:"Hello 1"}); | |
| var row2 = Titanium.UI.createTableViewRow({title:"Hello 2"}); | |
| section.add(row1); | |
| section.add(row2); | |
| tableview.setData([section]); | |
| win.add(tableview); |
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() { | |
| Titanium.Facebook.appid = "134793934930"; | |
| Titanium.Facebook.permissions = ['publish_stream', 'read_stream', 'user_photos', 'friends_photos']; | |
| Titanium.Facebook.addEventListener('login', function(e) { | |
| if(e.success) { | |
| getAlbumCovers(); | |
| return; | |
| } else if(e.error || e.cancelled) { |
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.backgroundColor = '#fff'; | |
| var win = Ti.UI.createWindow(); | |
| var label = Ti.UI.createLabel({ | |
| text:"I'll bet you just clicked on a link to http://www.appcelerator.com", | |
| color:'#000', | |
| font: { | |
| fontSize:32 | |
| }, | |
| width:'80%' |
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_APPLICATION --> | |
| <activity android:name=".IntentFilterTestActivity" | |
| android:label="Intent Filter Test" 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> | |
| <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
| var intent = Ti.Android.createIntent({ | |
| action: Ti.Android.ACTION_SEND, | |
| type: "text/plain" | |
| }); | |
| intent.putExtra(Ti.Android.EXTRA_TEXT, 'Some text that we want to share'); | |
| intent.addCategory(Ti.Android.CATEGORY_DEFAULT); | |
| Ti.Android.currentActivity.startActivity(intent); |
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.backgroundColor = '#000000'; | |
| var win = Ti.UI.createWindow(); | |
| var label = Ti.UI.createLabel({ | |
| text: 'Say Something!', | |
| color:'#eeeeee', | |
| font: { | |
| fontSize:'20dp', | |
| 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 intent = Ti.Android.createIntent({ | |
| action: Ti.Android.ACTION_SEND, | |
| type: "text/plain" | |
| }); |
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
| intent.putExtra(Ti.Android.EXTRA_TEXT, 'Some text that we want to share'); |
OlderNewer