public class ParallelAnimator extends Animation
DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
ParallelAnimator()
This class allows multiple Combinable objects to be animated in parallel.
|
Modifier and Type | Method and Description |
---|---|
ParallelAnimator |
add(Combinable combinable)
This method adds this Combinable object to an ArrayList.
|
void |
animate()
This method gets the ArrayList, sets any parameters if needed and plays
all animations in parallel.
|
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
ParallelAnimatorListener |
getListener() |
ParallelAnimator |
setDuration(long duration)
This method overrides the
setDuration() methods of all the
parallel animations. |
ParallelAnimator |
setInterpolator(TimeInterpolator interpolator)
This method overrides the
setInterpolator() methods of all
the parallel animations. |
ParallelAnimator |
setListener(ParallelAnimatorListener listener) |
public ParallelAnimator()
public ParallelAnimator add(Combinable combinable)
combinable
- The Animation object that implements the Combinable
interface and is allowed to animate with other animations.public void animate()
public TimeInterpolator getInterpolator()
public ParallelAnimator setInterpolator(TimeInterpolator interpolator)
setInterpolator()
methods of all
the parallel animations.interpolator
- The interpolator of the entire parallel animation to set.public long getDuration()
public ParallelAnimator setDuration(long duration)
setDuration()
methods of all the
parallel animations.duration
- The duration of the entire parallel animation to set.public ParallelAnimatorListener getListener()
public ParallelAnimator setListener(ParallelAnimatorListener listener)
listener
- The listener to set for the end of the parallel animation.