开发者社区 问答 正文

android 在EdtiText输入完成后如何实现单击按钮后,使软键盘消失

android 在输入完成后如何实现单击按钮后,使软键盘消失

展开
收起
爵霸 2016-06-15 09:49:04 2459 分享 版权
1 条回答
写回答
取消 提交回答
  • ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(WidgetSearchActivity.this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
    2019-07-17 19:38:42
    赞同 展开评论