简体   繁体   English

在 AVD 中测试旋转设备

[英]Test Rotating Device in AVD

I'm using AVD to test the app.我正在使用 AVD 来测试该应用程序。 When I press CTRL-F12, the emulator window rotated, but the screen in it doesn't.当我按 CTRL-F12 时,模拟器窗口旋转,但其中的屏幕没有旋转。 It's still in Potrait mode.它仍然处于Potrait模式。 I can't still test the roration behavior.我仍然无法测试旋转行为。 I have checked in the System Setting in the emulator system, the Auto Rotate Screen is on.我已经在模拟器系统中检查了系统设置,自动旋转屏幕是打开的。

Many apps, including many (most?) phone launchers, won't switch to landscape mode on device rotation.许多应用程序,包括许多(大多数?)手机启动器,不会在设备旋转时切换到横向模式。 Most tablet launchers do rotate, so try a tablet AVD.大多数平板电脑启动器都会旋转,因此请尝试使用平板电脑 AVD。

If it's your own app that's not rotating, make sure you don't have android:screenOrientation="portrait" specified in your AndroidManifest.xml file.如果您自己的应用没有旋转,请确保您的AndroidManifest.xml文件中没有指定android:screenOrientation="portrait"

更改 AndroidMainifest 文件中活动的方向可能是您的活动方向是纵向

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

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