public class FlipVerticalAnimation extends Animation implements Combinable
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 |
---|
FlipVerticalAnimation(View view)
This animation causes the view to flip vertically by a customizable
number of degrees and at a customizable pivot point.
|
Modifier and Type | Method and Description |
---|---|
void |
animate()
This method animates the properties of the view specific to the Animation
object.
|
AnimatorSet |
getAnimatorSet() |
float |
getDegrees() |
long |
getDuration() |
TimeInterpolator |
getInterpolator() |
AnimationListener |
getListener() |
int |
getPivot()
The available pivot points are
PIVOT_CENTER ,
PIVOT_TOP and PIVOT_BOTTOM . |
FlipVerticalAnimation |
setDegrees(float degrees)
In order to flip down, the number of degrees should be negative and vice
versa.
|
FlipVerticalAnimation |
setDuration(long duration) |
FlipVerticalAnimation |
setInterpolator(TimeInterpolator interpolator) |
FlipVerticalAnimation |
setListener(AnimationListener listener) |
FlipVerticalAnimation |
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 FlipVerticalAnimation(View view)
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 float getDegrees()
public FlipVerticalAnimation setDegrees(float degrees)
degrees
- The number of degrees to set to flip by.public int getPivot()
PIVOT_CENTER
,
PIVOT_TOP
and PIVOT_BOTTOM
.public FlipVerticalAnimation setPivot(int pivot)
PIVOT_CENTER
,
PIVOT_TOP
and PIVOT_BOTTOM
.pivot
- The pivot point to set for flipping.public TimeInterpolator getInterpolator()
public FlipVerticalAnimation setInterpolator(TimeInterpolator interpolator)
setInterpolator
in interface Combinable
interpolator
- The interpolator of the entire animation to set.public long getDuration()
getDuration
in interface Combinable
public FlipVerticalAnimation setDuration(long duration)
setDuration
in interface Combinable
duration
- The duration of the entire animation to set.public AnimationListener getListener()
public FlipVerticalAnimation setListener(AnimationListener listener)
setListener
in interface Combinable
listener
- The listener to set for the end of the animation.