android软键盘的隐藏

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);

 

if (this.getWindow() != null
&& this.getWindow().getCurrentFocus() != null) {
imm.hideSoftInputFromWindow(this.getWindow().getCurrentFocus()
.getWindowToken(), 0);
}

你可能感兴趣的:(android)