为什么android模拟器不旋转回来?
我是 Mac 用户。我刚刚安装了 Eclipse 和 Android SDK。但是,我意识到,当我的模拟器从纵向旋转到横向时,当我再次按 fn+ctrl+11/12
时,应用程序的视图不会返回,但模拟器会返回。这不仅发生在我的应用程序上,它也发生在设备程序(例如设置)上。
有谁知道其背后的原因?请帮忙。多谢。
I'm a Mac user. I just installed the Eclipse and Android SDK. However, I realised that when my emulator rotates from portrait to landscape, the view of the application does not turn back when I press fn+ctrl+11/12
again but the emulator does. This does not occur only on my app, it also occurs on the device program such as setting.
Does anyone know the reason behind it ? Please help. Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能遇到了模拟器运行某些版本的 Android 操作系统时出现的错误。有关链接,请参阅我的答案:Android 2.3 模拟器方向更改
You are probably running into a bug that occurs when the emulator runs certain versions of Android OS. For links, see my answer here: Android 2.3 emulator orientation changes
因为每次旋转都是 90 度,所以第一次倾斜它时,它会横向移动(90 度)。当您再次倾斜时,您会发现模拟器(手机)现在是上下颠倒的(180 度)。即使是普通的 Android 设备也不会颠倒显示纵向模式。再倾斜两次即可返回 0 度纵向。
because each rotation is 90 degrees, the first time you tilt it, it will go sideways (90 deg). what you're experiencing when you tilt it again is that the emulator(phone) is now upside-down (180 deg). even normal android devices do not display portrait mode upside-down. tilt it two more times to go back to 0 degrees portrait.