关闭输入法 我自己在ancivity中写了个搜索的东西,可是在点击过button之后输入法还没关闭,想咨询一下能不能在button的click事件中关闭掉输入法,如何实现,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试这个xml android:editable="false" 是在button属性里面写吗?这样不行 ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(getCurrentFocus() .getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);这个就可以了,可是得点两下 关闭软键盘的代码: InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0); android网易新闻如何做 wcdma网络下的socket通信问题 桌面控件实现抽屉效果 AppWidgetProvider + SlidingDrawer 评谷歌对摩托罗拉移动的收购 在编写Intent 时出现undefined错误如何解决啊。 android横竖屏切换问题 C8650 软件刷了花屏 用c++,在ubuntu成功,但在android上只能链接,不能听发送数据。 仿微信 为什么sdk里面啥文件都没啊,我还有什么没设置的吗?下面的文件都是空的。 点短信按钮之后显示我的程序 如何把自己的.so文件写进system/lib文件夹下面
xml android:editable="false"
.hideSoftInputFromWindow(getCurrentFocus()
.getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);
这个就可以了,可是得点两下
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);