feat:iOS support fillmode and delay

This commit is contained in:
pengfei.zhou
2019-12-02 15:04:03 +08:00
parent b12930605e
commit 9b9d8de262
4 changed files with 76 additions and 24 deletions

View File

@@ -656,10 +656,15 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
}
private Animator parseAnimator(JSValue value) {
if (value.isArray()) {
if (!value.isObject()) {
DoricLog.e("parseAnimator error");
return null;
}
JSValue animations = value.asObject().getProperty("animations");
if (animations.isArray()) {
AnimatorSet animatorSet = new AnimatorSet();
for (int i = 0; i < value.asArray().size(); i++) {
animatorSet.play(parseAnimator(value.asArray().get(i)));
for (int i = 0; i < animations.asArray().size(); i++) {
animatorSet.play(parseAnimator(animations.asArray().get(i)));
}
return animatorSet;
} else if (value.isObject()) {