摘要:
public enum Color { RED("红色", 1), GREEN("绿色", 2), BLANK("白色", 3), YELLO("黄色", 4); // 成员变量 private String name; private int index; // 构造方法 private Colo 阅读全文
posted @ 2018-07-31 16:52
一中晴哥威武
阅读(142)
评论(0)
推荐(0)
摘要:
1、在涉及使用Context时,对于生命周期比Activity长的对象应该使用Application的Context。凡是使用Context优先考虑Application的Context,当然它并不是万能的,对于有些地方则必须使用Activity的Context。对于Application,Serv 阅读全文
posted @ 2018-07-31 10:53
一中晴哥威武
阅读(1384)
评论(0)
推荐(0)
浙公网安备 33010602011771号