SHARE
TWEET

Untitled

a guest Jan 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. editText.setOnEditorActionListener(new OnEditorActionListener() {        
  2.     @Override
  3.     public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
  4.         if(actionId==EditorInfo.IME_ACTION_DONE){
  5.             //Clear focus here from edittext
  6.              editText.clearFocus();
  7.         }
  8.     return false;
  9.     }
  10. });
  11.    
  12. findViewById(R.id.myLayout).requestFocus();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top