2012-09-22 56 views
-2

我想要我的android應用程序在肖像模式下,一頁。是否有可能,請參考。在所有屏幕和風景中的Android屏幕取向肖像之一

+0

可能重複... http://stackoverflow.com/questions/12491453/set-the-orientation-for-the-view-in-android –

+0

的可能重複[修正佈局方向垂直?] (http://stackoverflow.com/questions/5702086/fix-layout-orientation-to-vertical) –

回答

0

您可以通過Android清單屬性android:screenOrientation指定每個Activity的方向。

<activity android:name=".SomeActivity" 
      android:label="@string/app_name" 
      android:screenOrientation="portrait"> 
+0

謝謝你的幫助:) –