简体   繁体   English

在Android中始终以反向人像模式设置活动方向

[英]Set activity orientation always in reverse Portrait mode in android

I want to set the orientation of my activity to reversePortrait. 我想将活动的方向设置为reversePortrait。 To do this, i set the following value in the activity of my manifest file: 为此,我在清单文件的activity中设置以下值:

 android:screenOrientation="reversePortait" 

But this only works you enable "Screen Rotation" from the settings of the device. 但这仅在您从设备设置启用“屏幕旋转”时有效。 If "Screen Rotation" is disabled it shows the screen in portrait mode instead of reverse portrait. 如果禁用了“屏幕旋转”,它将以纵向模式而不是反向纵向显示屏幕。

Please help. 请帮忙。

insert android:configChanges="orientation" below android:screenOrientation="reversePortait" 在android:screenOrientation =“ reversePortait”下插入android:configChanges =“ orientation”

It means the developer takes the whole control of the screen rotation, not the android pattern 这意味着开发人员将完全控制屏幕旋转,而不是android模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM