Android中的KeyEvent和硬件按键有什么区别吗?
如果我在 android 中以编程方式编码 KEYEVENT 为 KEYCODE_ENTER,这与 android 中的硬件 ENTER 键单击完全相同吗?
请帮助!
提前致谢..
If i programatically code KEYEVENT in android for KEYCODE_ENTER, is this exactly same as hardware ENTER key click in android??
Please Help!!
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我认为它是一样的,但主要的好处是我们可以控制当我们在 android 中以编程方式编码 KEYEVENT 时应该发生的事件,这对于硬件按钮来说是不可能的。
Yes , I think its same but the main benefit is we can control the event that should occur when we programatically code KEYEVENT in android which is not possible with the hardware buttons.