Skip to content

Instantly share code, notes, and snippets.

@kodamirmo
Created May 26, 2013 06:54
Show Gist options
  • Save kodamirmo/5651926 to your computer and use it in GitHub Desktop.
Save kodamirmo/5651926 to your computer and use it in GitHub Desktop.
@Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if ((event.getAction() == KeyEvent.ACTION_DOWN) &&
(keyCode == KeyEvent.KEYCODE_ENTER)) {
Log.i("TAG","Click en enter");
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment