1
//隐藏输入法
2
public void hideInput(){
3
if(MiniBrowser.this.getCurrentFocus()!=null){ 是否存在焦点
4
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
5
inputMethodManager.hideSoftInputFromWindow(MiniBrowser.this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
6
}
7
}