您的位置:首页 > 移动开发 > Android开发

Android 设计模式

2016-04-09 00:00 281 查看
摘要: http://mobile.51cto.com/ahot-418968.htm
Android 设计模式:
http://mobile.51cto.com/ahot-418968.htm
1. Application 单例模式
2. 观察者模式 各种listener
3. MVC 这个好理解
4. 响应链 触摸、按键等各种事件的传递
5.工厂模式
Singleton
在Framework的各个子系统里用Proxy模式

Builder模式:比如AlertDialog.Builder;例http://blog.csdn.net/bboyfeiyu/article/details/15504187
适配器模式:比如GridView、ListView与Adapter;例http://www.cnblogs.com/qianxudetianxia/archive/2012/02/27/2010965.html
命令模式:比如Handler.post;例http://blog.csdn.net/pipisky2006/article/details/8491123
享元模式:比如Message.obtain;例http://www.faceye.net/search/145875.html
单例模式:比如InputMethodManager.getInstance,例http://www.cnblogs.com/yemeishu/archive/2013/01/04/2843705.html
观察者模式:比如ContentObserver;例http://blog.csdn.net/qinjuning/article/details/7047607
抽象工厂模式:比如BaseActivity,例http://www.cnblogs.com/TerryBlog/archive/2011/07/25/2116617.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: