Chinaunix首页 | 论坛 | 博客
  • 博客访问: 840765
  • 博文数量: 182
  • 博客积分: 1992
  • 博客等级: 上尉
  • 技术积分: 1766
  • 用 户 组: 普通用户
  • 注册时间: 2010-10-18 11:49
文章分类

全部博文(182)

文章存档

2019年(1)

2016年(5)

2015年(29)

2014年(38)

2013年(21)

2012年(36)

2011年(52)

我的朋友

分类: Mysql/postgreSQL

2011-08-17 15:54:43

//This can be used to suppress the keyboard until the user actually touched the edittext view.

getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

// It works.
t.setInputType(InputType.TYPE_NULL);

// It doesn't work, seems a bug
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(t.getWindowToken(), 0);
阅读(616) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~