android OnkeyListener with filter stop onItemClicklistener from DPAD

谁说胖子不能爱 提交于 2019-12-20 03:02:37

问题


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

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.

As I am working in STB, I have no option except remote as remote functionality is kept as the basic requirement.


回答1:


Finally solved it by using the filter in every case of key-event rather than at top.



来源:https://stackoverflow.com/questions/36474607/android-onkeylistener-with-filter-stop-onitemclicklistener-from-dpad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!