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

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

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)studio使用笔记。。。
  2. Android学习路线图
  3. android 各种小项目
  4. Android: Android图形基础
  5. Android(安卓)API中文文档AccessibilityS
  6. android:ellipsize的使用
  7. android布局属性
  8. Android(安卓)API中文文档AccessibilityS
  9. android 开发不容错过的网站
  10. android:ellipsize的使用