Capture KeyEvent on RecyclerView Views
问题 Following the directions on this blog post I am able to track the selected item on a vertical list Adapter, but I cannot click or long click any item by pressing some key. I've created this method public static boolean isConfirmButton(KeyEvent event){ switch (event.getKeyCode()){ case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_DPAD_CENTER: case KeyEvent.KEYCODE_BUTTON_A: return true; default: return false; } } to intercept "confirm" buttons, but where's the right place to listen for