public class FadeOutAnimation extends Animation implements Combinable
View.INVISIBLE
.DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
FadeOutAnimation(View view)
This animation fades the view out by animating its alpha property to 0.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
AnimatorSet |
getAnimatorSet() |
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
FadeOutAnimation |
setDuration(long duration) |
FadeOutAnimation |
setInterpolator(TimeInterpolator interpolator) |
FadeOutAnimation |
setListener(AnimationListener listener) |
public FadeOutAnimation(View view)
View.INVISIBLE
.view
- The view to be animated.public void animate()
Animation
animate
in interface Combinable
animate
in class Animation
public AnimatorSet getAnimatorSet()
getAnimatorSet
in interface Combinable
public TimeInterpolator getInterpolator()
public FadeOutAnimation setInterpolator(TimeInterpolator interpolator)
setInterpolator
in interface Combinable
interpolator
- The interpolator of the entire animation to set.public long getDuration()
getDuration
in interface Combinable
public FadeOutAnimation setDuration(long duration)
setDuration
in interface Combinable
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public FadeOutAnimation setListener(AnimationListener listener)
setListener
in interface Combinable
listener
- The listener to set for the end of the animation.