Read more at http://fokkezb.nl/2013/10/07/dynamic-menu-for-tab-groups/
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
<Alloy> | |
<Window module="xp.ui"> | |
<Label>Hello World</Label> | |
</Window> | |
</Alloy> |
Read the blog at http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/
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
".btn": { | |
borderSize: 1, | |
borderColor: '#1881f9', | |
borderRadius: 3, | |
color: '#1881f9', | |
selectedColor: '#1881f9', | |
height: 26, | |
style: Ti.UI.iPhone.SystemButtonStyle.PLAIN, | |
font: { | |
fontSize: 15, |
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
// For iOS7 only, set the window's top to 20 so they start under the status bar. | |
Alloy.Globals.windowTop = (OS_IOS && parseInt(Ti.Platform.version[0], 10) >= 7) ? 20 : 0; |
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
keytool -exportcert -alias androiddebugkey -keystore ~/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/dev_keystore | openssl sha1 -binary | openssl base64 | |
keytool -exportcert -alias androiddebugkey -keystore ~/Library/Application\ Support/Titanium/mobilesdk/osx/3.1.3.GA/android/dev_keystore -list -v |
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
// Add do your app.js or alloy.js | |
Ti.Shadow = (typeof __p === 'object'); | |
// Use it anywhere | |
if (OS_IOS && !Ti.Shadow) { | |
require('dk.napp.testflight').takeOff(Alloy.CFG.testFlightToken); | |
} |
Read the blog at http://fokkezb.nl/2013/08/26/url-schemes-for-ios-and-android-1/
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
http://developer.android.com/guide/topics/resources/providing-resources.html#ScreenAspectQualifier | |
if ((Ti.Platform.displayCaps.platformWidth / Ti.Platform.displayCaps.platformHeight) < (((Ti.Gesture.orientation === Ti.UI.LANDSCAPE_LEFT)) ? (320 / 240) : (240 / 320)))) { | |
Ti.API.info('I am LONG'); | |
} else { | |
Ti.API.info('I am NOTLONG'); | |
} |