本文介绍了如何配置Android仿真器以在屏幕上显示新的Galaxy Nexus等按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我的应用程序转换/调整为Android 4.0.为此,我计划在支持它的设备上使用ActionBar.所有大于等于3.0的Android版本都这样做.此外,没有硬件菜单按钮的设备似乎会在操作栏上自动显示菜单"按钮.

I would like to convert/adapt my application to Android 4.0.To do so I plan to use the ActionBar on devices that support it. All Android version >= 3.0 do so. Furthermore devices that do not have a hardware menu button seem to show an "menu" button on the actionbar automatically.

当我使用API​​级别13在模拟器上测试我的应用程序时,它确实可以按预期工作......但是以某种方式我无法将模拟器设置为在API级别14(Android 4.0)上模拟手机时以相同的方式运行.当我尝试将"后退/主键"设置为"错误"时,根本没有按钮(不在屏幕上,也没有提供键盘)由仿真器).

When I test my application on the emulator using API level 13 this does work as expected...... but somehow I'm not able to setup the emulator to behave the same way while emulating a phone on API level 14 (Android 4.0). When I try to set "Hardware Back/Home keys" to false there are no buttons at all (not on the screen and not keypad provided by the emulator).

我在"Galaxy Nexus"的一些屏幕截图和视频中看到,它也在ActionBar上显示了菜单"按钮……就像Honeycomb平板电脑一样,但是我以某种方式未能成功完成与仿真器相同,这使得了解我的UI在Andoid 4.0手机上的工作方式变得更加复杂.

I have seen on some screenshots and videos from the "Galaxy Nexus" that it is showing an "menu" button on the ActionBar as well ... like Honeycomb tablets do it, but I'm somehow not successful to do the same with the emulator which makes it a bit more complicated to understand how my UI will work on Andoid 4.0 phones.

此处是一幅图像,显示了我想在模拟器:

推荐答案

似乎该问题已通过SDK(R16)的最新更新解决.只需将您的SDK和ADT更新到R16,然后使用更新的Android 4.0系统映像创建一个新的模拟器.

It seems the issue was fixed with the latest update of the SDK (R16).Just update your SDK and ADT to R16 and create a new emulator using the updated Android 4.0 system image.

这篇关于如何配置Android仿真器以在屏幕上显示新的Galaxy Nexus等按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 08:30