Created
June 26, 2014 07:31
-
-
Save nishitpatel/e46b252f05b397929ba6 to your computer and use it in GitHub Desktop.
Handel Soft keyboard Go,Next,Done Text event.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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