Issue in android list -
i have list view , listening using key listener keycode_5. issue facing whenever press 5, function onkey() (inside listener) called twice. idea?
could not checking wether the event fired keyup or keydown?
if need catch event keydown create eventhandler this:
public boolean onkey(view v, int keycode, keyevent event) { // if event key-down event on "5" button if ((event.getaction() == keyevent.action_down) && (keycode == keyevent.keycode_5)) { // perform action on key press // event code goes here return true; } return false; }
Comments
Post a Comment