feat:Android implement FillMode

This commit is contained in:
pengfei.zhou
2019-12-02 16:18:13 +08:00
parent 359e974424
commit 7f278073f3
4 changed files with 131 additions and 14 deletions

View File

@@ -340,7 +340,9 @@ - (CFTimeInterval)computeDurationOfAnimations:(NSArray<CAAnimation *> *)animatio
[animations forEach:^(CAAnimation *obj) {
interval = MAX(interval, obj.beginTime + obj.duration * (1 + obj.repeatCount));
}];
return interval;
/// Here add 0.00001 to force animationGroup's last child animation affects fill mode.
/// Otherwise the child's fill mode will be overwritten by parent.
return interval + 0.00001;
}
- (CAAnimation *)parseAnimation:(id)params {