开发者无需逐一定义每一帧,只需要定义动画的关键帧即可.
具体实现需要用到Interpolator,Interpolator负责控制动画的变化速度,这就使得基本的动画效果(Alpha,Scale,Translate,Rotate)能以匀速变化、加速、减速、抛物线速度等各种速度变化。Interpolator是一个接口,它定义了所有Interpolator都需要实现的float getInterpolation(float input)方法,开发者通过实现Interpolator来实现动画变化速度。具体实现需要用到Interpola