摘要: // 一般做法 public void showToast(Context context, String msg) { Toast.makeText(context, msg, Toast.LENGTH_SHORT).show(); } ===============华丽的分割线========= 阅读全文
posted @ 2016-02-29 16:43 VichanHo 阅读(432) 评论(0) 推荐(0) 编辑
摘要: /** 隐藏键盘 */ public void hideKeyboard(Context context, View v) { ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoft 阅读全文
posted @ 2016-02-29 16:32 VichanHo 阅读(162) 评论(0) 推荐(0) 编辑