在监听器的代码中加入一行,就能够隐藏键盘了。 ide
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); get