[英]Android: start Activity always in portrait but recognize orientation change
[英]Set activity orientation always in reverse Portrait mode in android
我想將活動的方向設置為reversePortrait。 為此,我在清單文件的activity
中設置以下值:
android:screenOrientation="reversePortait"
但這僅在您從設備設置啟用“屏幕旋轉”時有效。 如果禁用了“屏幕旋轉”,它將以縱向模式而不是反向縱向顯示屏幕。
請幫忙。
在android:screenOrientation =“ reversePortait”下插入android:configChanges =“ orientation”
這意味着開發人員將完全控制屏幕旋轉,而不是android模式
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.