-
Notifications
You must be signed in to change notification settings - Fork 207
ObjectAnimation.ag
xu_whale edited this page Sep 7, 2020
·
1 revision
动画
ObjectAnimation(AnimProperty property, View target) 构造方法
delay(number delay)
动画开始延迟时间
duration(number duration)
控制动画时长
repeatCount(number count)
重复次数
repeatForever(boolean forever)
动画是否永远重复执行
autoReverses(boolean reverses)
动画是否翻转重复
startBlock(function startBlock)
动画开始回调
pauseBlock(function pauseBlock)
动画暂停回调
resumeBlock(function resumeBlock)
动画恢复回调
repeatBlock(function repeatBlock)
动画重复回调
finishBlock(function finishBlock)
动画完成回调
from(number beginVal)
动画初始状态
to(number endVal)
动画结束状态
from(number red, number green, number blue, number alpha)
Color动画初始状态
to(number red, number green, number blue, number alpha)
Color动画结束状态
from(number x, number y)
Position/Scale动画初始状态
to(number x, number y)
Position/Scale动画结束状态
property()
获取动画属性值
动画配置,Timing.Spring动画可设置SpringConfig
target()
获取动画视图对象
start()
开始动画
pause()
暂停动画
resume()
恢复动画
stop()
强制结束动画
addInteractiveBehavior(InteractiveBehavior behavior)
给动画添加交互效果