禁用 ListView 的 onKeyDown?
如何禁用 listView 的 onKeyDown ?我希望活动的 onKeyDown 处理 keyEvent 并且仅处理 keyEvent。谢谢。
How can I disable onKeyDown of a listView? I want the onKeyDown of the activity to handle the keyEvent and only the keyEvent. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您从 ListActivity 扩展列表视图,那么下面的内容会对您有所帮助。
onListItemClick:
OnKeyDown:
If you are extending your listview from ListActivity then below will hep you.
onListItemClick:
OnKeyDown:
使用这个类
Use this class