O my acer tablet, return will not replace by executing the following xml, but it does on my other 2 Android devices. So I was going to use the return key to exit the keyboard, as a back-up, the problem was, I figured out how to make a callback when key press, press but donβt know how to make the keyboard go away, code
mUserName=(EditText)findViewById(R.id.viewUserName); mUserName.setOnEditorActionListener( new android.widget.TextView.OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
source share