
设计模式
fofu33
个人微信:qinoem,来交个朋友吧
展开
-
Android中的设计模式--适配器模式
最近对适配器有了新的理解,特记录下。 写代码遇到了使用ScaleAnimation,我想在结束完,执行另一个动画,于是我增加了一个Animation.AnimationListener。另一个动画又是使用的animator属性动画,我使用了Animator.MyListenerAdapter 或Animator.AnimatorListener方便此动画结束后执行另一个动画。于是最后我想把两种lis原创 2016-03-24 15:42:09 · 553 阅读 · 1 评论 -
Android中的设计模式--建造者模式
之前只知道建造者典型例子是AlertDialog,它的基本写法是public class AlertDialog extends Dialog implements DialogInterface { private AlertController mAlert; protected AlertDialog(Context context) { this(context原创 2016-03-24 17:04:22 · 2617 阅读 · 3 评论