Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- editText.setOnEditorActionListener(new OnEditorActionListener() {
- @Override
- public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
- if(actionId==EditorInfo.IME_ACTION_DONE){
- //Clear focus here from edittext
- editText.clearFocus();
- }
- return false;
- }
- });
- findViewById(R.id.myLayout).requestFocus();
Add Comment
Please, Sign In to add comment