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