2014-11-05 51 views
0

我希望我的应用在Android中允许纵向和横向模式,但我发现大多数选项似乎不起作用,或者可能我没有正确实施它们。钛合金的Android方向

我试图建立从这个例子的代码,没有运气:

http://docs.appcelerator.com/titanium/3.0/#!/guide/Orientation

这是我tiapp.xml为Android我的清单代码

<android xmlns:android="http://schemas.android.com/apk/res/android"> 
    <manifest> 
     <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18"/>   
     <!-- This removes the action ot title bar in Android. --> 
     <application android:theme="@style/Theme.Titanium"/> 
    </manifest> 
</android> 
+0

我在我的tiapp中没有'uses-permission'节点,并且纵向和横向从一开始就起作用。可能会检查您的设备 – Flame 2014-11-05 15:19:30

+0

我认为权限是让应用商店让用户知道该应用有权访问哪些内容。是否有一些代码需要添加到清单以使其旋转全传感器。 – imbayago 2014-11-06 07:51:19

回答

0

这是我的tiapp.xml关于android配置文件以及仅显示状态栏的窗口:

<android xmlns:android="http://schemas.android.com/apk/res/android"> 
    <manifest> 
    <application android:icon="@drawable/appicon" android:label="Test" android:name="TestApplication" android:debuggable="false" android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar"> 
    </application> 
    </manifest> 
</android> 
+0

我会试试这个。谢谢 – imbayago 2015-09-03 15:56:47