27
32

More than 1 year has passed since last update.

Androidの表示画面の回転固定

Last updated at Posted at 2014-08-19

#横方向に固定する場合
androidManifest.xml内の対象となるactivityタグの中に、android:screenOrientation="landscape"を挿入する。

例えば、

androidManifest.xml
<activity
	android:name=".MainActivity"
	android:screenOrientation="landscape">
</activity>

#縦方向に固定する場合
<activity android:screenOrientation="portrait">を挿入する。

例えば、

androidManifest.xml
<activity
	android:name=".MainActivity"
	android:screenOrientation="portrait">
</activity>
27
32
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
32