标签:
1 InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); 2 imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
1 InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); 2 if (imm.isActive()) { 3 imm.hideSoftInputFromWindow(getWindow().getDecorView() 4 .getWindowToken(), 0); 5 }
标签:
原文地址:http://www.cnblogs.com/YyuTtian/p/5383700.html