关闭默认打开的输入法
((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(v.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
关闭默认输入法
本文介绍了一种方法来关闭默认打开的软键盘输入法。通过使用 InputMethodManager 的 hideSoftInputFromWindow 方法,可以实现在应用程序中隐藏软键盘的功能。
1万+

被折叠的 条评论
为什么被折叠?



