Skip to content

Instantly share code, notes, and snippets.

@nishitpatel
Created June 26, 2014 07:31
Show Gist options
  • Save nishitpatel/e46b252f05b397929ba6 to your computer and use it in GitHub Desktop.
Save nishitpatel/e46b252f05b397929ba6 to your computer and use it in GitHub Desktop.
Handel Soft keyboard Go,Next,Done Text event.
edittext.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId,
KeyEvent event) {
// TODO Auto-generated method stub
if (actionId == EditorInfo.IME_ACTION_GO) {
//Do your task on go text click from keyboard
}
if(actionId == EditorInfo.IME_ACTION_NEXT){
//Do your task on Next text click from keyboard
}
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment