摘要: public class CloseAllActivity { public List<Activity> activities = new ArrayList<Activity>(); /** 使用此方法将当前Activity添加到Activity管理器列表中 */ public void add 阅读全文
posted @ 2016-02-29 16:53 VichanHo 阅读(193) 评论(0) 推荐(0) 编辑
摘要: // 一般做法 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) 编辑