当前位置: 代码迷 >> Android >> android软键盘的掩藏
  详细解决方案

android软键盘的掩藏

热度:47   发布时间:2016-05-01 17:16:27.0
android软键盘的隐藏

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

?

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

  相关解决方案