android 关闭软键盘

android 关闭软键盘

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

            imm.hideSoftInputFromWindow(searchEt.getWindowToken(), 0);