Hi In my Activity I have a HorizontalScrollView.
I am trying to get the on key events for left and right from the hardware. So I put the following code: horizontalScrollViewContainer.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { Log.d(TAG, "KEY=" + keyCode); return false; } }); This code is never executed. Then I put the following code to try to catch the event for the activity: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { Log.d(TAG, "onKeyDown"); return false; } BUT this event is only fired when the HorizontalScrollView is at the begining or at the end. When the right key is pressed and the HorizontalScrollView is moved to the right, no event is fired. Does anyone knows how to read the event? Thanks Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---