如何让输入法自动隐藏?

((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE))
                                .hideSoftInputFromWindow(LoginActivity.this
                                                .getCurrentFocus().getWindowToken(),
                                                InputMethodManager.HIDE_NOT_ALWAYS);

原文地址:https://www.cnblogs.com/kobe8/p/3794622.html