AlertDialog、Notification源码中使用了Bulider(建造者)模式完成参数的初始化
日常开发的BaseActivity抽象工厂模式
Okhttp内部使用了责任链模式来完成每个Interceptor拦截器的调用
初始化okhttp使用了单例模式
RxJava eventbus liveData-->观察者模式
AIDL代理模式 动态代理
ListView/RecyclerView/GridView的适配器模式
Context/ContextImpl外观模式
AlertDialog、Notification源码中使用了Bulider(建造者)模式完成参数的初始化
日常开发的BaseActivity抽象工厂模式
Okhttp内部使用了责任链模式来完成每个Interceptor拦截器的调用
初始化okhttp使用了单例模式
RxJava eventbus liveData-->观察者模式
AIDL代理模式 动态代理
ListView/RecyclerView/GridView的适配器模式
Context/ContextImpl外观模式
本文标题:设计模式的应用
本文链接:https://www.haomeiwen.com/subject/bjypdhtx.html
网友评论