AndroidアプリをLandscapeにする方法


ランドスケープ(横置き)モードのAndroidアプリを作るには、AndroidManifest.xmlのactivityタグにandroid:screenOrientation=”landscape”を追加すればよい。

<activity
   android:name=".MainActivity"
   android:label="@string/title_activity_main"
   android:screenOrientation="landscape" <!--追加行-->
    >

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>