public class AnimatorUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnimatorUtils.OnAnimationEndListener
An interface definition that is invoked when an animation ends.
|
| Constructor and Description |
|---|
AnimatorUtils() |
| Modifier and Type | Method and 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,
AnimatorUtils.OnAnimationEndListener listener)
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 |
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(android.view.View view,
int animatorRes,
AnimatorUtils.OnAnimationEndListener listener)
view - the view to be animatedanimatorRes - the animator resource to be loadedlistener - the animator end listenerpublic static void animate(android.view.View view,
int animatorRes,
int duration,
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(android.view.View view,
int animatorRes)
view - the view to be animatedanimatorRes - the animator resource to be loadedpublic static void animate(android.view.View view,
int animatorRes,
int duration)
view - the view to be animatedanimatorRes - the animator resource to be loadedduration - the duration of the animatorpublic static void rotate(android.view.View view,
float rotation)
view - the view to be rotatedrotation - the value to animate topublic static void rotateBy(android.view.View view,
float rotationBy)
view - the view to be rotatedrotationBy - the value to animate bypublic static void alpha(android.view.View convertView,
float alpha,
AnimatorUtils.OnAnimationEndListener listener)
convertView - the view to be animatedalpha - the value to animate tolistener - the animator end listenerpublic static void alpha(android.view.View convertView,
float alpha)
convertView - the view to be animatedalpha - the value to animate to© 2015–2019 Mapbox. All rights reserved.