Package com.trimblemaps.mapsdk.utils
Class AnimatorUtils
java.lang.Object
com.trimblemaps.mapsdk.utils.AnimatorUtils
Animator utility class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface definition that is invoked when an animation ends. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidalpha(android.view.View convertView, float alpha) Animate a view alpha property to a value.static voidalpha(android.view.View convertView, float alpha, AnimatorUtils.OnAnimationEndListener listener) Animate a view alpha property to a value.static voidanimate(android.view.View view, int animatorRes) Animate a view from an animator resource.static voidanimate(android.view.View view, int animatorRes, int duration) Animate a view from an animator resource.static voidanimate(android.view.View view, int animatorRes, int duration, AnimatorUtils.OnAnimationEndListener listener) Animate a view from an animator resource.static voidanimate(android.view.View view, int animatorRes, AnimatorUtils.OnAnimationEndListener listener) Animate a view from an animator resource.static voidrotate(android.view.View view, float rotation) Animate a view rotation property to a value.static voidrotateBy(android.view.View view, float rotationBy) Animate a view rotation property by a value.
-
Constructor Details
-
AnimatorUtils
public AnimatorUtils()
-
-
Method Details
-
animate
public static void animate(@NonNull android.view.View view, @AnimatorRes int animatorRes, @Nullable AnimatorUtils.OnAnimationEndListener listener) Animate a view from an animator resource.- Parameters:
view- the view to be animatedanimatorRes- the animator resource to be loadedlistener- the animator end listener
-
animate
public static void animate(@Nullable android.view.View view, @AnimatorRes int animatorRes, int duration, @Nullable AnimatorUtils.OnAnimationEndListener listener) Animate a view from an animator resource.- Parameters:
view- the view to be animatedanimatorRes- the animator resource to be loadedduration- the duration of the animatorlistener- the animator end listener
-
animate
public static void animate(@NonNull android.view.View view, @AnimatorRes int animatorRes) Animate a view from an animator resource.- Parameters:
view- the view to be animatedanimatorRes- the animator resource to be loaded
-
animate
public static void animate(@NonNull android.view.View view, @AnimatorRes int animatorRes, int duration) Animate a view from an animator resource.- Parameters:
view- the view to be animatedanimatorRes- the animator resource to be loadedduration- the duration of the animator
-
rotate
public static void rotate(@NonNull android.view.View view, float rotation) Animate a view rotation property to a value.- Parameters:
view- the view to be rotatedrotation- the value to animate to
-
rotateBy
public static void rotateBy(@NonNull android.view.View view, float rotationBy) Animate a view rotation property by a value.- Parameters:
view- the view to be rotatedrotationBy- the value to animate by
-
alpha
public static void alpha(@NonNull android.view.View convertView, float alpha, @Nullable AnimatorUtils.OnAnimationEndListener listener) Animate a view alpha property to a value.- Parameters:
convertView- the view to be animatedalpha- the value to animate tolistener- the animator end listener
-
alpha
public static void alpha(@NonNull android.view.View convertView, float alpha) Animate a view alpha property to a value.- Parameters:
convertView- the view to be animatedalpha- the value to animate to
-