public class AnimationUtils
extends java.lang.Object
| Constructor and Description |
|---|
AnimationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static android.animation.Animator |
fade(android.view.View view,
float fromAlpha,
float toAlpha,
int duration)
Fade Animation
|
static android.animation.Animator |
reveal(android.view.View view,
int cx,
int cy,
int startRadius,
int finalRadius,
int duration)
Circular Reveal Animation
|
static android.animation.Animator |
scaleX(android.view.View view,
int pivotX,
int pivotY,
float fromScale,
float toScale,
int duration)
Animator to animate X scale of the view.
|
static android.animation.Animator |
scaleY(android.view.View view,
int pivotX,
int pivotY,
float fromScale,
float toScale,
int duration)
Animator to animate Y scale of the view.
|
@NonNull
public static android.animation.Animator fade(@NonNull
android.view.View view,
float fromAlpha,
float toAlpha,
int duration)
view - View to be animatedfromAlpha - initial alphatoAlpha - final alphaduration - animation duration in milliseconds@NonNull
public static android.animation.Animator reveal(@NonNull
android.view.View view,
int cx,
int cy,
int startRadius,
int finalRadius,
int duration)
view - View to be animatedcx - x coordinate of the center of the circlecy - y coordinate of the center of the circlestartRadius - initial circle radiusfinalRadius - final circle radiusduration - animation duration in milliseconds@NonNull
public static android.animation.Animator scaleY(@NonNull
android.view.View view,
int pivotX,
int pivotY,
float fromScale,
float toScale,
int duration)
view - View to be animatedpivotX - x coordinate of the pivotpivotY - y coordinate of the pivotfromScale - initial scaletoScale - final scaleduration - animation duration in milliseconds@NonNull
public static android.animation.Animator scaleX(@NonNull
android.view.View view,
int pivotX,
int pivotY,
float fromScale,
float toScale,
int duration)
view - View to be animatedpivotX - x coordinate of the pivotpivotY - y coordinate of the pivotfromScale - initial scaletoScale - final scaleduration - animation duration in milliseconds