隐藏:
InputMethodManager imm = (InputMethodManager) ExpressSelectActivity.this.getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
显示:
InputMethodManager imm = (InputMethodManager) ExpressSelectActivity.this.getSystemService(INPUT_METHOD_SERVICE);
imm.showSoftInput(v, 0);
自己在项目中使用过,有效