//设置输入法
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if (inputMethodManager.isActive())
inputMethodManager.hideSoftInputFromWindow(MainActivity.this.getCurrentFocus().getWindowToken()
, InputMethodManager.HIDE_NOT_ALWAYS);
android-input
最新推荐文章于 2021-09-28 15:38:48 发布