Currently, I have a layout which contains a Button, a TextView and an EditText. When the layout is displayed, the focus will be automa
Button
TextView
EditText
You can try just hidding the keyboard. Something like this:
InputMethodManager inputManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); inputManager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);