摘要: Android 在Android上提到适配器模式就会想到最常用的ListView和BaseAdapter 在这个功能的使用中,类似于适配器模式的对象适配器 例如在ListView中想用一个getView()方法,但是不同的数据,不同的需求,会有不同的getView()结果,所以getView()不能 阅读全文
posted @ 2017-02-13 17:32 叫我什么大人 阅读(5454) 评论(0) 推荐(0) 编辑
摘要: public class Singleton { private static Singleton instance = null; private Singleton() { } /* * 懒汉单例模式,线程不安全 */ public static Singleton getInstanceLazy() { if... 阅读全文
posted @ 2017-02-13 14:30 叫我什么大人 阅读(149) 评论(0) 推荐(0) 编辑