Android 禁止螢幕旋轉
Temperature: 0 °C
位置在app/manifests/路徑底下
在 <activity> </activity> 中,添加一條屬性資訊:
android:screenOrientation="portrait" (強制豎屏)
android:screenOrientation="landscape" (強制橫屏)

上面展示使用了強制豎屏,這樣不管怎麼旋轉畫面都能夠保持~
這部份倒是比RWD網站好用多了。
以上紀錄~
HOME All Categories Android 禁止 ...
Temperature: 0 °C
android:screenOrientation="portrait" (強制豎屏)
android:screenOrientation="landscape" (強制橫屏)
Mark Chang
離不開電腦的宅男
Leave some footprints to prove that you visited me
Author's other related stories
Please select an option
error
Copy complete
Hi, thank you for your participation, but you cannot vote repeatedly~
Wrong format