Android 模拟器中的硬件按钮不可点击 [英] Hardware buttons is not clickable in Android emulator

查看:39
本文介绍了Android 模拟器中的硬件按钮不可点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio 1.0 RC 2 中工作,并且我有一个带有英特尔 HAXM 的 Android 模拟器.模拟器运行正常.它显示了硬件按钮,但该按钮不可点击.Nexus S 的 AVD 配置是默认的,但它的比例是 0.5.

I work in Android Studio 1.0 RC 2 and I have an Android Emulator with Intel HAXM. The emulator is running normally. It shows the hardware buttons, but this buttons is not clickable. The AVD configuration is default for Nexus S, but it's scale is 0.5.

推荐答案

基于@CommonsWare 评论

Based on @CommonsWare comment

@Plugie:我从不使用这些皮肤,而且我不知道那些按钮应该是可点击的.

@Plugie: I never use those skins, and I am not aware that those buttons are ever supposed to be clickable.

我建议设置 hw.mainKeys=no

I recommend to set hw.mainKeys=no

进入 AVD 的实际配置文件.在 OS X 和 Linux 上,通常是 ~/.android/avd/.../config.ini,其中 ... 基于您的 AVD 的名称.看看你的 hw.mainKeys 值是什么

Go into the actual configuration file for your AVD. On OS X and Linux, that normally is ~/.android/avd/.../config.ini, where ... is based on the name of your AVD. See what your hw.mainKeys value is

设置 hw.mainKeys=no 后,它会显示 System Bar,它可以在屏幕截图中看到哪个红色矩形.然后您可以使用系统栏而不是硬件按钮导航返回,主页

After set hw.mainKeys=no, it will show System Bar which can be seen in screen shoot which red rectangle. Then you can navigate BACK, HOME using System Bar instead of Hardware Button

这篇关于Android 模拟器中的硬件按钮不可点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆