animate Parallel - Android Animation

Android examples for Animation:Animation Creation

Description

animate Parallel

Demo Code


import android.animation.Animator;
import android.animation.AnimatorSet;

public class Main {
  public static Animator animateParallelly(Animator... a) {
    Animator list[] = new Animator[a.length];
    System.arraycopy(a, 0, list, 0, a.length);

    AnimatorSet set = new AnimatorSet();
    set.playTogether(list);/*  w ww  .  j  a v a 2 s.  c om*/
    return set;
  }
}

Related Tutorials