【美妍機房】How to Run Android app only in Portrait or Landscape mode


app-manifest-

androidmanifest.xml

<activity android:name="main"

android:screenOrientation="landscape"


868

In the manifest, set this for all your activities: <activity android:name=".YourActivity"android:configChanges="orientation"android:screenOrientation="portrait"/> Let me explain:

  • With android:configChanges="orientation" you tell Android that you will be responsible of the changes of orientation.

  • android:screenOrientation="portrait" you set the default orientation mode.

最新文章

查看全部
bedroom-ppng.png

情節驚心動魄,情感深厚真摯,情慾熾烈狂熱的琴研單行本!僅限18歲以上讀者哦!以下為情慾濃烈的甜愛單行本

tea-cover.jpg
18+
cover-piao.jpg
18+
electricity_01.jpg
18+
1lightred3-pearl-cover.jpg
18+
kinbaku_01.jpg
18+
seven-cover.jpg
18+
1yellow2-cover-honey.jpg
18+
piano_01.jpg
18+
chip_01.jpg
18+
wine_01.jpg
18+
electricity_01.jpg
18+
you_01.jpg
18+
horsem.jpg
18+
frog_01.jpg
18+
cover3new.png
18+