隐藏:
InputMethodManager manager = (InputMethodManager) this.getBaseContext().getSystemService(INPUT_METHOD_SERVICE);
manager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
显示:
InputMethodManager manager = (InputMethodManager) this.getBaseContext().getSystemService(INPUT_METHOD_SERVICE);
manager.showSoftInput(“你的EditText”, InputMethodManager.SHOW_IMPLICIT);