Last active
August 18, 2017 19:40
-
-
Save Tarelochkin/ddcd570d96b14cf32eeac273a0bc44d5 to your computer and use it in GitHub Desktop.
Hide the soft keyboard programmatically or alternatively in Manifest.xml
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
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); | |
inputMethodManager.hideSoftInputFromWindow(searchView.getWindowToken(), 0); |
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
<activity | |
android:windowSoftInputMode="stateHidden"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment