When we have an EditText and it loses focus (to an element that doesn\'t need a keyboard), should the soft keyboard hide automatically or are we supposed to hid
EditText
Try this, May be it will solve your problem.
private void hideKeyboard() { InputMethodManager mImMan = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); mImMan.hideSoftInputFromWindow(mYourEdttxtName.getWindowToken(), 0); }
You can find more information from here.