public class AnimatorUtils
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
AnimatorUtils.OnAnimationEndListener |
An interface definition that is invoked when an animation ends.
|
| Constructor | Description |
|---|---|
AnimatorUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
alpha(android.view.View convertView,
float alpha) |
Animate a view alpha property to a value.
|
static void |
alpha(android.view.View convertView,
float alpha,
AnimatorUtils.OnAnimationEndListener listener) |
Animate a view alpha property to a value.
|
static void |
animate(android.view.View view,
int animatorRes) |
Animate a view from an animator resource.
|
static void |
animate(android.view.View view,
int animatorRes,
int duration) |
Animate a view from an animator resource.
|
static void |
animate(android.view.View view,
int animatorRes,
int duration,
AnimatorUtils.OnAnimationEndListener listener) |
Animate a view from an animator resource.
|
static void |
animate(android.view.View view,
int animatorRes,
AnimatorUtils.OnAnimationEndListener listener) |
Animate a view from an animator resource.
|
static void |
rotate(android.view.View view,
float rotation) |
Animate a view rotation property to a value.
|
static void |
rotateBy(android.view.View view,
float rotationBy) |
Animate a view rotation property by a value.
|
public static void animate(@NonNull
android.view.View view,
@AnimatorRes
int animatorRes,
@Nullable
AnimatorUtils.OnAnimationEndListener listener)
view - the view to be animatedanimatorRes - the animator resource to be loadedlistener - the animator end listenerpublic static void animate(@Nullable
android.view.View view,
@AnimatorRes
int animatorRes,
int duration,
@Nullable
AnimatorUtils.OnAnimationEndListener listener)
view - the view to be animatedanimatorRes - the animator resource to be loadedduration - the duration of the animatorlistener - the animator end listenerpublic static void animate(@NonNull
android.view.View view,
@AnimatorRes
int animatorRes)
view - the view to be animatedanimatorRes - the animator resource to be loadedpublic static void animate(@NonNull
android.view.View view,
@AnimatorRes
int animatorRes,
int duration)
view - the view to be animatedanimatorRes - the animator resource to be loadedduration - the duration of the animatorpublic static void rotate(@NonNull
android.view.View view,
float rotation)
view - the view to be rotatedrotation - the value to animate topublic static void rotateBy(@NonNull
android.view.View view,
float rotationBy)
view - the view to be rotatedrotationBy - the value to animate bypublic static void alpha(@NonNull
android.view.View convertView,
float alpha,
@Nullable
AnimatorUtils.OnAnimationEndListener listener)
convertView - the view to be animatedalpha - the value to animate tolistener - the animator end listenerpublic static void alpha(@NonNull
android.view.View convertView,
float alpha)
convertView - the view to be animatedalpha - the value to animate to