问题描述
我想在模拟器上测试手机的旋转,我到处都看到我们必须使用 Ctrl+F11 但是它只会旋转模拟器的图像,不会启动配置更改事件或重绘活动.
I would like to test the rotation of a phone on the emulator, I see everywhere that we have to use Ctrl+F11 but it only rotates the image of the emulator and does not launch a configuration change event or redraw the activity.
这是我使用 Ctrl+F11 所拥有的:
Here is what I have with Ctrl+F11 :
那么,我必须使用什么来模拟真实的旋转?
So, what do I have to use to simulate a real rotation ?
推荐答案
正如 Nicolas Jafelle 所建议的那样 here,您可以尝试在模拟器设置中添加属性Keyboard Support-->yes".这对我有帮助.
As suggested by Nicolas Jafelle here, you can try to add the property "Keyboard Support-->yes" in the emulator settings. That helped me.
PS:它还允许您的模拟器从您的键盘获取输入.查看更多这里
PS: it will also allow for your emulator to get input from your keyboard. See more here
这篇关于Android 模拟器 - 屏幕旋转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!