CopyPastor

Detecting plagiarism made easy.

Score: 0.8342859148979187; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2015-07-21
by Abhi

Original Post

Original - Posted on 2012-10-05
by Vinay Revankar



            
Present in both answers; Present only in the new answer; Present only in the old answer;

EditText.setOnKeyListener(new OnKeyListener() { public boolean onKey(View view, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_ENTER) { InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(URLText.getWindowToken(), 0); EditText.setFocusable(false); EditText.setFocusableInTouchMode(true); return true; } else { return false; } } });
Use the below code to remove the focus from the EditText editText.setOnKeyListener(new OnKeyListener() { public boolean onKey(View view, int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_ENTER) { InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(URLText.getWindowToken(), 0); editText.setFocusable(false); editText.setFocusableInTouchMode(true); return true; } else { return false; } } });

        
Present in both answers; Present only in the new answer; Present only in the old answer;