首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

android软键盘的掩藏

2012-09-01 
android软键盘的隐藏InputMethodManager imm (InputMethodManager) getSystemService(Context.INPUT_MET

android软键盘的隐藏

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

?

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

热点排行