Created
December 21, 2017 07:24
-
-
Save Cutta/5703c514050b6a3e53e81b8ad005333f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void showKeyboard(final Activity activity, final View view) { | |
InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); | |
inputMethodManager.toggleSoftInputFromWindow( | |
view.getApplicationWindowToken(), | |
InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_NOT_ALWAYS); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment