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