Beispiel #1
0
 /**
  * Default constructor.
  *
  * @param pathView The view that must be animated.
  */
 public AnimatorSetBuilder(final PathView pathView) {
   paths = pathView.paths;
   for (SvgUtils.SvgPath path : paths) {
     path.setAnimationStepListener(pathView);
     ObjectAnimator animation = ObjectAnimator.ofFloat(path, "length", 0.0f, path.getLength());
     animators.add(animation);
   }
   animatorSet.playSequentially(animators);
 }
Beispiel #2
0
 /** Sets the length of all the paths to 0. */
 private void resetAllPaths() {
   for (SvgUtils.SvgPath path : paths) {
     path.setLength(0);
   }
 }