Created
January 9, 2012 12:35
-
-
Save iskugor/1582755 to your computer and use it in GitHub Desktop.
Android hardware accelerator & tabs width
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.adriatic.test" android:versionCode="1" | |
android:versionName="1"> | |
<uses-sdk android:minSdkVersion="11" /> | |
<!-- TI_MANIFEST --> | |
<application android:icon="@drawable/appicon" | |
android:label="Test Application" android:name="TestApplication" | |
android:debuggable="false"> | |
<!-- TI_APPLICATION --> | |
<activity android:name=".TestActivity" | |
android:label="Test Application" 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> | |
</activity> | |
<activity | |
android:name="ti.modules.titanium.map.TiMapActivity" | |
android:configChanges="keyboardHidden|orientation" | |
android:launchMode="singleTask" | |
/> | |
<uses-library android:name="com.google.android.maps" /> | |
<activity android:name="org.appcelerator.titanium.TiActivity" | |
android:configChanges="keyboardHidden|orientation" /> | |
<activity android:name="org.appcelerator.titanium.TiTranslucentActivity" | |
android:configChanges="keyboardHidden|orientation" | |
android:theme="@android:style/Theme.Translucent" /> | |
<activity android:name="org.appcelerator.titanium.TiModalActivity" | |
android:configChanges="keyboardHidden|orientation" | |
android:theme="@android:style/Theme.Translucent" | |
/> | |
<activity android:name="ti.modules.titanium.ui.TiTabActivity" | |
android:configChanges="keyboardHidden|orientation" /> | |
<activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity" /> | |
<service android:name="org.appcelerator.titanium.analytics.TiAnalyticsService" | |
android:exported="false" /> | |
</application> | |
<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"/> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/> | |
</manifest> |
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
var tabGroup = Titanium.UI.createTabGroup(); | |
var win1 = Titanium.UI.createWindow({ | |
backgroundColor: '#3c9' | |
}); | |
var tab1 = Titanium.UI.createTab({ | |
title: 'Test 1', | |
width: '50%', | |
window: win1 | |
}); | |
var win2 = Titanium.UI.createWindow({ | |
backgroundColor: '#93c' | |
}); | |
var tab2 = Titanium.UI.createTab({ | |
title: 'Test 2', | |
width: 500, | |
window: win2 | |
}); | |
tabGroup.addTab(tab1); | |
tabGroup.addTab(tab2); | |
tabGroup.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
<?xml version="1.0" encoding="UTF-8"?> | |
<ti:app xmlns:ti="http://ti.appcelerator.org"> | |
<property name="ti.android.runtime">v8</property> | |
<deployment-targets> | |
<target device="mobileweb">false</target> | |
<target device="iphone">false</target> | |
<target device="ipad">false</target> | |
<target device="android">true</target> | |
<target device="blackberry">false</target> | |
</deployment-targets> | |
<sdk-version>1.9.0</sdk-version> | |
<id>com.adriatic.test</id> | |
<name>Test</name> | |
<version>1.0</version> | |
<publisher>ivan.skugor</publisher> | |
<url>http://www.adriatic.hr</url> | |
<description>not specified</description> | |
<copyright>2011 by ivan.skugor</copyright> | |
<icon>appicon.png</icon> | |
<persistent-wifi>false</persistent-wifi> | |
<prerendered-icon>false</prerendered-icon> | |
<statusbar-style>default</statusbar-style> | |
<statusbar-hidden>false</statusbar-hidden> | |
<fullscreen>false</fullscreen> | |
<navbar-hidden>false</navbar-hidden> | |
<analytics>true</analytics> | |
<guid>7ed25513-e9d5-4cc0-a767-e49e17845bef</guid> | |
<iphone> | |
<orientations device="iphone"> | |
<orientation>Ti.UI.PORTRAIT</orientation> | |
</orientations> | |
<orientations device="ipad"> | |
<orientation>Ti.UI.PORTRAIT</orientation> | |
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation> | |
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation> | |
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation> | |
</orientations> | |
</iphone> | |
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>11</tool-api-level> | |
<manifest> | |
<supports-screens android:anyDensity="true" /> | |
<uses-sdk android:minSdkVersion="11"/> | |
<application android:hardwareAccelerated="true"> | |
<activity | |
android:configChanges="keyboardHidden|orientation" | |
android:name=".TestActivity" android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar"> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> | |
</android> | |
<modules/> | |
</ti:app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment