Android--- edittext 隐藏软键盘

 /**   * 隐藏软键盘   *   * @param context   */  public static void hideKeyboard(Activity activity, View view) {   InputMethodManager imm = (InputMethodManager) activity     .getSystemService(Context.INPUT_METHOD_SERVICE);   imm.hideSoftInputFromWindow(view.getWindowToken(), 0);

 }

你可能感兴趣的:(EditText)