摘要:
使用模式最好的方式是:“把模式装进脑子里,然后在你的设计和已有的应用中,寻找何处可以使用它们。” 使用场景: a. 产生莫对象会消耗过多的资源,为避免频繁的创建和销毁对象对资源造成的浪费。例如: 对数据库的操作、访问IO、线程池、网络请求等。 b. 某种类型的对象应该有且只有一个。若制造出多个这样的 阅读全文
摘要:
转自http://blog.csdn.net/zjbpku/article/details/22976291 What is this? The Android-apt plugin assists in working with annotation processors in combinati 阅读全文