1.软键盘的隐藏
EditText et_input ;
Context mContext;
InputMethodManager mKey = (InputMethodManager) mContext.getApplicationContext().
getSystemService(Context.INPUT_METHOD_SERVICE);
mKey.hideSoftInputFromWindow(et_input.getWindowToken(), 0);
2.软键盘的显示
mKey.showSoftInput(et_input,InputMethodManager.SHOW_FORCED);