Created
July 17, 2018 16:46
-
-
Save milon120203/f15944af37b4e7faa49a59363108bab4 to your computer and use it in GitHub Desktop.
Portrait Mode Working
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
//controllers/index.js | |
function doClick(e) { | |
alert($.label.text); | |
} | |
$.index.open(); |
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
//styles/index.tss | |
".container": { | |
backgroundColor:"white" | |
} | |
"Label": { | |
width: Ti.UI.SIZE, | |
height: Ti.UI.SIZE, | |
color: "#000" | |
} | |
"#label": { | |
font: { | |
fontSize: 12 | |
} | |
} |
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
//views/index.xml | |
<Alloy> | |
<Window class="container"> | |
<Label id="label" onClick="doClick">Hello, World</Label> | |
</Window> | |
</Alloy> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ti:app xmlns:ti="http://ti.appcelerator.org"> | |
<id>com.ex.MyApp</id> | |
<name>MyappApplication</name> | |
<version>1.0</version> | |
<publisher>rakibulislam</publisher> | |
<url/> | |
<description/> | |
<copyright>2018 by rakibulislam</copyright> | |
<icon>appicon.png</icon> | |
<fullscreen>false</fullscreen> | |
<navbar-hidden>false</navbar-hidden> | |
<analytics>true</analytics> | |
<guid>8863e03d-9656-4a63-9999-fd1a449b35d8</guid> | |
<property name="ti.ui.defaultunit" type="string">dp</property> | |
<property name="run-on-main-thread" type="bool">true</property> | |
<ios> | |
<enable-launch-screen-storyboard>true</enable-launch-screen-storyboard> | |
<use-app-thinning>true</use-app-thinning> | |
<plist> | |
<dict> | |
<key>UISupportedInterfaceOrientations~iphone</key> | |
<array> | |
<string>UIInterfaceOrientationPortrait</string> | |
</array> | |
<key>UISupportedInterfaceOrientations~ipad</key> | |
<array> | |
<string>UIInterfaceOrientationPortrait</string> | |
<string>UIInterfaceOrientationPortraitUpsideDown</string> | |
<string>UIInterfaceOrientationLandscapeLeft</string> | |
<string>UIInterfaceOrientationLandscapeRight</string> | |
</array> | |
<key>UIRequiresPersistentWiFi</key> | |
<false/> | |
<key>UIPrerenderedIcon</key> | |
<false/> | |
<key>UIStatusBarHidden</key> | |
<false/> | |
<key>UIStatusBarStyle</key> | |
<string>UIStatusBarStyleDefault</string> | |
</dict> | |
</plist> | |
</ios> | |
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<manifest> | |
<application android:icon="@drawable/appicon" android:label="MyappApplication" android:name="MyappapplicationApplication" android:debuggable="false" android:theme="@style/Theme.AppCompat" android:resizeableActivity="true"> | |
<activity android:name=".MyappapplicationActivity" android:label="@string/app_name" android:theme="@style/Theme.Titanium" android:configChanges="keyboardHidden|orientation|fontScale|screenSize|smallestScreenSize|screenLayout|density"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN"/> | |
<category android:name="android.intent.category.LAUNCHER"/> | |
</intent-filter> | |
</activity> | |
<activity android:screenOrientation="portrait" android:name="org.appcelerator.titanium.TiActivity" android:configChanges="keyboardHidden|orientation|fontScale|screenSize|smallestScreenSize|screenLayout|density"/> | |
<activity android:screenOrientation="portrait" android:name="org.appcelerator.titanium.TiTranslucentActivity" android:configChanges="keyboardHidden|orientation|fontScale|screenSize|smallestScreenSize|screenLayout|density" android:theme="@style/Theme.Titanium.Translucent"/> | |
<activity android:screenOrientation="portrait" android:name="ti.modules.titanium.ui.android.TiPreferencesActivity" android:configChanges="screenSize|density"/> | |
<provider android:name="org.appcelerator.titanium.io.TiFileProvider" android:authorities="com.ex.MyApp.tifileprovider" android:exported="false" android:grantUriPermissions="true"/> | |
<service android:name="com.appcelerator.aps.APSAnalyticsService" android:permission="android.permission.BIND_JOB_SERVICE" android:exported="false"/> | |
</application> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
</manifest> | |
</android> | |
<modules/> | |
<deployment-targets> | |
<target device="iphone">false</target> | |
<target device="ipad">false</target> | |
<target device="android">true</target> | |
<target device="windows">false</target> | |
</deployment-targets> | |
<sdk-version>7.2.0.GA</sdk-version> | |
<plugins> | |
<plugin version="1.0">ti.alloy</plugin> | |
</plugins> | |
<property name="appc-app-id" type="string">5b4e12765b69fb3f59a36211</property> | |
</ti:app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment