public class PuffOutAnimation extends Animation
View.INVISIBLE
.DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
PuffOutAnimation(View view)
This animation scales up and fades out the view.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
PuffOutAnimation |
setDuration(long duration) |
PuffOutAnimation |
setInterpolator(TimeInterpolator interpolator) |
PuffOutAnimation |
setListener(AnimationListener listener) |
public PuffOutAnimation(View view)
View.INVISIBLE
.view
- The view to be animated.public void animate()
Animation
public TimeInterpolator getInterpolator()
public PuffOutAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public PuffOutAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public PuffOutAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.