android 暗藏输入法

android 隐藏输入法InputMethodManager inputMethodManager (InputMethodManager)activity.getApplicatio

android 隐藏输入法

InputMethodManager inputMethodManager =(InputMethodManager)activity.getApplicationContext().

getSystemService(Context.INPUT_METHOD_SERVICE);?

?

EditText editText = (EditText)findViewById(R.id.xxxx);?

inputMethodManager.hideSoftInputFromWindow(editText.getWindowToken(), 0); //隐藏