1
所以我已經設置我的清單讓應用程序保持肖像模式,因爲這是應該如何玩的遊戲。但是,儘管我做過我見過其他人做的事情,但當您傾斜手機時,它仍會切換模式。下面是我已經與清單進行:Android應用程序不會保持肖像模式
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
...
android:screenOrientation="portrait">
...
<activity android:name=".GameActivity"
...
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="nosensor">
哦......我現在看到了。謝謝。 – 2012-02-05 04:39:27