public class BaseAnimation
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
BaseAnimation |
discrete(boolean discrete) |
BaseAnimation |
duration(float duration) |
AnimationConfig |
getAnimConfig() |
float |
getDuration() |
long |
getStartTime() |
BaseAnimation |
repeat(boolean repeat) |
BaseAnimation |
start(long startTime) |
BaseAnimation |
times(float[] times) |
public AnimationConfig getAnimConfig()
public BaseAnimation duration(float duration)
duration
- 动画时长 单位 :spublic BaseAnimation repeat(boolean repeat)
repeat
- 是否重复,默认falsepublic BaseAnimation discrete(boolean discrete)
discrete
- values值是否跳变,falsepublic BaseAnimation times(float[] times)
times
- 手动设置动画时间变化轴public BaseAnimation start(long startTime)
startTime
- 动画开始时间(跟timer时间轴保持一致)public float getDuration()
public long getStartTime()