关闭输入法 //关闭输入法InputMethodManager inputMethodManager = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE); inputMethodManager.hideSoftInputFromWindow(foodFindEditText.getWindowToken(), 0);