How to hide keyboard on dialog dismiss
问题 I have an Activity with single Fragment on it. There is one EditText on the fragment. The keyboard is popping up as soon the fragment is shown, however I managed to block it setting in the manifest android:windowSoftInputMode="stateHidden" However, there also is a button, which opens a dialog with another EditText. I have a method that automatically closes the keyboard on dialog dismiss. public static void closeInput(final View caller) { caller.post(new Runnable() { @Override public void run(