Created
January 4, 2016 08:48
-
-
Save Limuyang1013/74f6d53b29fdd439fc18 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
显示: | |
InputMethodManager imm = (InputMethodManager)(getSystemService(Context.INPUT_METHOD_SERVICE)); | |
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); | |
隐藏: | |
InputMethodManager imm = (InputMethodManager)(getSystemService(Context.INPUT_METHOD_SERVICE)); | |
imm.hideSoftInputFromWindow(m_edit.getWindowToken(), 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment