标签:
public static void hideKeyboard(Context context) { // 隐藏软键盘 try { InputMethodManager imm = ((InputMethodManager) context .getSystemService(context.INPUT_METHOD_SERVICE)); imm.hideSoftInputFromWindow(((Activity) context).getCurrentFocus() .getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } catch (Exception e) { } }
标签:
原文地址:http://www.cnblogs.com/fuyanan/p/4476544.html