| | |
| | | for (Node node : mNodes) { |
| | | Animator animation = node.animation; |
| | | if (animation instanceof AnimatorSet) { |
| | | ((AnimatorSet)animation).setTarget(target); |
| | | animation.setTarget(target); |
| | | } else if (animation instanceof ObjectAnimator) { |
| | | ((ObjectAnimator)animation).setTarget(target); |
| | | animation.setTarget(target); |
| | | } |
| | | } |
| | | } |
| | |
| | | public Node clone() { |
| | | try { |
| | | Node node = (Node) super.clone(); |
| | | node.animation = (Animator) animation.clone(); |
| | | node.animation = animation.clone(); |
| | | return node; |
| | | } catch (CloneNotSupportedException e) { |
| | | throw new AssertionError(); |