A repository to study design mode
创建型模式
- 1.Singleton(单例模式) : Application
- 2.Builder() : Custom Dialog
- 3.Concrete : Cloneable
- 4.Factory(工厂模式) : 这种模式在移动端开发中使用的频率相对较小,写demo的意义不大
- 5.Abstract Factory(抽象工厂模式) : 几乎没有在移动端开发中遇到过
行为型设计模式
- 1.State(状态模式) : Custom Dialog
- 2.Chain of Responsibility(责任链模式) :
- 3.Command(命令模式) :
- 4.Interpreter(解释器模式) :
- 5.Iterator(迭代器模式) :
- 6.Mediator(中介者模式) :
- 7.Memento(备忘录模式) :
- 8.Observer(观察者模式) :
- 9.Strategy(策略模式) :
- 10.Template(模板方法模式) :
- 11.Visitor(访问者模式) :
结构型设计模式
- 1.Adapter(适配器模式) :
- 2.Bridge(桥接模式) :
- 3.Composite(组合模式) :
- 4.Decorator(装饰模式) :
- 5.Facade(外观模式) :
- 6.Flyweight(享元模式) :
- 7.Proxy(代理模式) :