android OnkeyListener与DPAD的过滤器停止onItemClicklistener [英] android OnkeyListener with filter stop onItemClicklistener from DPAD
问题描述
这是我的自定义对话框布局.
This is my custom-dialog layout.
我想移动日期选择器并将相应的项目加载到其下方的网格中.
I want to move the selector of days and load respective items in the grid below it.
我可以通过过滤器执行操作,如此处
I could perform it via filter as said here
但是由于过滤器的原因,我无法执行应在单击网格视图中的项目时触发的操作.当我通过鼠标单击而不是D-Pad时,它可以正常工作. 如果我在keyevent中删除了过滤器,则它可以正常工作,但是再次滑动选择器会出现问题.
But because of the filter I am not being able to perform the action that should be triggered while clicking items in the grid view. It works fine when I click via mouse but not D-Pad. If I remove the filter in keyevent, it works normally, but problem again in sliding the selector via.
在STB上工作时,我别无选择,只能将远程功能作为基本要求.
As I am working in STB, I have no option except remote as remote functionality is kept as the basic requirement.
推荐答案
最终通过在每种键事件而不是顶部使用过滤器来解决它.
Finally solved it by using the filter in every case of key-event rather than at top.
这篇关于android OnkeyListener与DPAD的过滤器停止onItemClicklistener的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!