如何将Android软键盘的Toggle功能改写成长尾?
- 内容介绍
- 文章标签
- 相关推荐
本文共计53个文字,预计阅读时间需要1分钟。
在Android中,可以通过以下代码实现键盘切换控制:
javaif (getCurrentFocus() !=null) { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow( getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);}
Android 软键盘Toggleif(getCurrentFocus()!=null) { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(getCurrentFocus() .getWindowToken(),InputMethodManager.HIDE_NOT_ALWAYS); }
本文共计53个文字,预计阅读时间需要1分钟。
在Android中,可以通过以下代码实现键盘切换控制:
javaif (getCurrentFocus() !=null) { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)).hideSoftInputFromWindow( getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);}
Android 软键盘Toggleif(getCurrentFocus()!=null) { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(getCurrentFocus() .getWindowToken(),InputMethodManager.HIDE_NOT_ALWAYS); }

