在我的布局里有一个EditText和一个Button。在编辑框中输入完之后点击按钮,我想要隐藏虚拟键盘
((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(WidgetSearchActivity.this.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);