摘要:
Android 在Android上提到适配器模式就会想到最常用的ListView和BaseAdapter 在这个功能的使用中,类似于适配器模式的对象适配器 例如在ListView中想用一个getView()方法,但是不同的数据,不同的需求,会有不同的getView()结果,所以getView()不能 阅读全文
摘要:
public class Singleton { private static Singleton instance = null; private Singleton() { } /* * 懒汉单例模式,线程不安全 */ public static Singleton getInstanceLazy() { if... 阅读全文