android源码设计模式解析与实战 笔记 7.6节

    xiaoxiao2021-03-25  18

    7.6 android 源码中的策略模式实现

    View . startAnimation()

    ->ViewGroup .drawChild()

    ->View .draw()

    ->applyLegacyAnimation()

    ->Animation.getTransformation()

    ->getTransformation()

    ->getInterpolation() //接口,有多个实现,

    ->applyTransformation()//空方法,基类实现功能

    转载请注明原文地址: https://ju.6miu.com/read-149676.html

    最新回复(0)