在相应的EditText下面:
InputMethodManager imm = (InputMethodManager) getSystemService(AppLogin.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromInputMethod(loginAccounEditText.getWindowToken(), 0);
就可以隐藏键盘了
在相应的EditText下面:
InputMethodManager imm = (InputMethodManager) getSystemService(AppLogin.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromInputMethod(loginAccounEditText.getWindowToken(), 0);
就可以隐藏键盘了