public class SlideOutAnimation extends Animation implements Combinable
View.INVISIBLE
.DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
SlideOutAnimation(View view)
This animation causes the view to slide out to the borders of the screen.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
AnimatorSet |
getAnimatorSet() |
int |
getDirection()
The available directions to slide in from are
DIRECTION_LEFT
, DIRECTION_RIGHT , DIRECTION_TOP and
DIRECTION_BOTTOM . |
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
SlideOutAnimation |
setDirection(int direction)
The available directions to slide in from are
DIRECTION_LEFT
, DIRECTION_RIGHT , DIRECTION_TOP and
DIRECTION_BOTTOM . |
SlideOutAnimation |
setDuration(long duration) |
SlideOutAnimation |
setInterpolator(TimeInterpolator interpolator) |
SlideOutAnimation |
setListener(AnimationListener listener) |
public SlideOutAnimation(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 int getDirection()
DIRECTION_LEFT
, DIRECTION_RIGHT
, DIRECTION_TOP
and
DIRECTION_BOTTOM
.Animation
public SlideOutAnimation setDirection(int direction)
DIRECTION_LEFT
, DIRECTION_RIGHT
, DIRECTION_TOP
and
DIRECTION_BOTTOM
.direction
- The direction to set to slide the view out to.Animation
public TimeInterpolator getInterpolator()
public SlideOutAnimation setInterpolator(TimeInterpolator interpolator)
setInterpolator
in interface Combinable
interpolator
- The interpolator of the entire animation to set.public long getDuration()
getDuration
in interface Combinable
public SlideOutAnimation setDuration(long duration)
setDuration
in interface Combinable
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public SlideOutAnimation setListener(AnimationListener listener)
setListener
in interface Combinable
listener
- The listener to set for the end of the animation.