摘要:
// 一般做法 public void showToast(Context context, String msg) { Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); } ===============华丽的分割线========= 阅读全文
摘要:
/** 隐藏键盘 */ public void hideKeyboard(Context context, View v) { ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoft 阅读全文