Android 软键盘Toggle if(getCurrentFocus()!=null) { ((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(getCurrentFocus() .getWindowToken(),InputMethodManager.HIDE_NOT_ALWAYS); }
if(getCurrentFocus()!=null)
{
((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE))
.hideSoftInputFromWindow(getCurrentFocus()
.getWindowToken(),InputMethodManager.HIDE_NOT_ALWAYS);
}
