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
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
相关文章推荐
- Android SQLite数据库(dictionary.db文件)与apk文件一起发布
- Android 后台的Activity被系统回收怎么办
- Android 开发技巧
- Create a custom view in Android || 在 Android 中创建一个自定义 View
- Android App中实现相册瀑布流展示的实例分享
- 链接汇总-Android数据库
- android studio更新后出现的错误提示
- [转]Android ANR 分析解决方法
- Android NDK tombstone分析工具
- Android APK签名有什么用呢?
- [android] 手机卫士自定义对话框布局
- Android学习笔记(Google官方教程)(二)
- Android-Universal-Image-Loader 图片异步加载类库的使用(超详细配置)
- Android学习(9) -- 点击事件中的View
- Android自定义View之圆形进度条
- Android学习(8) -- 短信发送器
- Android Context简介
- Android设备标识符的使用
- 使用Android studio 出现的问题解决
- Android Studio 2.0 新版模拟器