public class FlipVerticalToAnimation extends Animation
View.INVISIBLE
.Modifier and Type | Field and Description |
---|---|
static int |
PIVOT_BOTTOM |
static int |
PIVOT_CENTER |
static int |
PIVOT_TOP |
DIRECTION_DOWN, DIRECTION_LEFT, DIRECTION_RIGHT, DIRECTION_UP, DURATION_DEFAULT, DURATION_LONG, DURATION_SHORT
Constructor and Description |
---|
FlipVerticalToAnimation(View view)
This animation causes the view to flip vertically to reveal another
user-provided view at the back of the original view.
|
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 flip directions are
DIRECTION_UP and
DIRECTION_DOWN . |
long |
getDuration() |
View |
getFlipToView() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
int |
getPivot()
The available pivot points are
PIVOT_CENTER ,
PIVOT_TOP and PIVOT_BOTTOM . |
FlipVerticalToAnimation |
setDirection(int direction)
The available flip directions are
DIRECTION_UP and
DIRECTION_DOWN . |
FlipVerticalToAnimation |
setDuration(long duration) |
FlipVerticalToAnimation |
setFlipToView(View flipToView) |
FlipVerticalToAnimation |
setInterpolator(TimeInterpolator interpolator) |
FlipVerticalToAnimation |
setListener(AnimationListener listener) |
FlipVerticalToAnimation |
setPivot(int pivot)
The available pivot points are
PIVOT_CENTER ,
PIVOT_TOP and PIVOT_BOTTOM . |
public static final int PIVOT_CENTER
public static final int PIVOT_TOP
public static final int PIVOT_BOTTOM
public FlipVerticalToAnimation(View view)
View.INVISIBLE
.view
- The view to be animated.public void animate()
Animation
public View getFlipToView()
public FlipVerticalToAnimation setFlipToView(View flipToView)
flipToView
- The view to set to be revealed after flipping the original
view.public int getPivot()
PIVOT_CENTER
,
PIVOT_TOP
and PIVOT_BOTTOM
.public FlipVerticalToAnimation setPivot(int pivot)
PIVOT_CENTER
,
PIVOT_TOP
and PIVOT_BOTTOM
.pivot
- The pivot to set for flipping.public int getDirection()
DIRECTION_UP
and
DIRECTION_DOWN
.Animation
public FlipVerticalToAnimation setDirection(int direction)
DIRECTION_UP
and
DIRECTION_DOWN
.flipDirection
- The direction of the flip to set.Animation
public TimeInterpolator getInterpolator()
public FlipVerticalToAnimation setInterpolator(TimeInterpolator interpolator)
interpolator
- The interpolator of the entire animation to set.public long getDuration()
public FlipVerticalToAnimation setDuration(long duration)
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public FlipVerticalToAnimation setListener(AnimationListener listener)
listener
- The listener to set for the end of the animation.