为什么姜饼模拟器方向卡在应用程序中?

why does the gingerbread emulator orientation get stuck in apps?(为什么姜饼模拟器方向卡在应用程序中?)
本文介绍了为什么姜饼模拟器方向卡在应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

起初我认为这是我的应用程序的问题,但它似乎发生在姜饼模拟器的任何应用程序中(尽管有趣的是,不是主屏幕).

At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator.

要复制我的问题,打开 eclipse 并启动姜饼的 android 模拟器(我使用Google APIs - API Level 9"作为我的目标)

To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target)

所以模拟器加载后复制的过程是

So the procedure to duplicate once the emulator loads is

按 LCtrl-F11 将方向切换到横向,然后再次切换到纵向

press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait

结果:
在主屏幕中:
视图按预期旋转为横向,然后返回纵向

Result:
In the homescreen:
The view rotates to landscape, and then back to portrait, as expected

在任何应用程序中(我尝试过浏览器、计算器、地图和我目前正在开发的应用程序):
视图旋转到横向,然后什么也没有,即使模拟器以横向模式显示手机,它也会保持横向(见下文)

In any app (i've tried browser, calculator, maps, and the app i'm currently working on):
the view rotates to landscape, and then nothing, it stays in landscape even the emulator is displaying the phone in landscape mode (see below)

有没有其他人遇到过这个问题,或者我以某种不正确的方式安装了模拟器 - 以前的任何模拟器都没有这个问题

Has anyone else had this issue, or have I installed the emulator in some incorrect way - this hasn't been an issue with any of the previous emulators

推荐答案

实际上,我以前偶尔也遇到过这个问题,尽管它似乎随着每个通过工具的发布而变得越来越糟.您的安装或使用程序的方式没有任何问题,AFAIK.您可以尝试使用 Ctrl-F12 而不是 Ctrl-F11 切换回来,看看是否可以改善问题.我认为问题可能源于模拟器试图模拟四向方向,但这只是一个猜测.

Actually, I have run into that problem occasionally before, though it does seem to get progressively worse with each passing tools release. There is nothing wrong with your installation or how you are using the program, AFAIK. You might try using Ctrl-F12 to switch back rather than Ctrl-F11 and see if that improves matters. I think the problem may stem from the emulator trying to emulate four-way orientation, but that is just a guess.

这篇关于为什么姜饼模拟器方向卡在应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How To Create a Rotating Wheel Control?(如何创建转轮控件?)
iOS 6 rotations: supportedInterfaceOrientations doesn#180;t work?(iOS 6 旋转:supportedInterfaceOrientations 不起作用?)
How to avoid restarting activity when orientation changes on Android(如何在 Android 上的方向更改时避免重新启动活动)
Screen orientation lock(屏幕方向锁定)
Strange behavior with android orientation sensor(android方向传感器的奇怪行为)
Android: Rotate image in imageview by an angle(Android:将imageview中的图像旋转一个角度)