public class ViewAnimationUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SCALE_UP_DURATION |
| Constructor and Description |
|---|
ViewAnimationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SupportAnimator |
createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius)
Returns an Animator which can animate a clipping circle.
|
static SupportAnimator |
createCircularReveal(android.view.View view,
int centerX,
int centerY,
float startRadius,
float endRadius,
int layerType)
Returns an Animator which can animate a clipping circle.
|
static void |
liftingFromBottom(android.view.View view,
float baseRotation,
float fromY,
int duration,
int startDelay)
Deprecated.
|
static void |
liftingFromBottom(android.view.View view,
float baseRotation,
int duration)
Deprecated.
|
static void |
liftingFromBottom(android.view.View view,
float baseRotation,
int duration,
int startDelay)
Deprecated.
|
public static final int SCALE_UP_DURATION
public static SupportAnimator createCircularReveal(android.view.View view, int centerX, int centerY, float startRadius, float endRadius)
Any shadow cast by the View will respect the circular clip from this animator.
Only a single non-rectangular clip can be applied on a View at any time.
Views clipped by a circular reveal animation take priority over
View Outline clipping.
Note that the animation returned here is a one-shot animation. It cannot be re-used, and once started it cannot be paused or resumed.
view - The View will be clipped to the animating circle.centerX - The x coordinate of the center of the animating circle.centerY - The y coordinate of the center of the animating circle.startRadius - The starting radius of the animating circle.endRadius - The ending radius of the animating circle.public static SupportAnimator createCircularReveal(android.view.View view, int centerX, int centerY, float startRadius, float endRadius, int layerType)
Any shadow cast by the View will respect the circular clip from this animator.
Only a single non-rectangular clip can be applied on a View at any time.
Views clipped by a circular reveal animation take priority over
View Outline clipping.
Note that the animation returned here is a one-shot animation. It cannot be re-used, and once started it cannot be paused or resumed.
view - The View will be clipped to the animating circle.centerX - The x coordinate of the center of the animating circle.centerY - The y coordinate of the center of the animating circle.startRadius - The starting radius of the animating circle.endRadius - The ending radius of the animating circle.layerType - View layer type View.LAYER_TYPE_HARDWARE or View.LAYER_TYPE_SOFTWARE@Deprecated
public static void liftingFromBottom(android.view.View view,
float baseRotation,
float fromY,
int duration,
int startDelay)
view - The animation targetbaseRotation - initial Rotation X in 3D spacefromY - initial Y position of viewduration - aniamtion durationstartDelay - start delay before animation begin@Deprecated
public static void liftingFromBottom(android.view.View view,
float baseRotation,
int duration,
int startDelay)
view - The animation targetbaseRotation - initial Rotation X in 3D spaceduration - aniamtion durationstartDelay - start delay before animation begin@Deprecated
public static void liftingFromBottom(android.view.View view,
float baseRotation,
int duration)
view - The animation targetbaseRotation - initial Rotation X in 3D spaceduration - aniamtion duration