Class AnimatorUtils

java.lang.Object
com.trimblemaps.mapsdk.utils.AnimatorUtils

public class AnimatorUtils extends Object
Animator utility class.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    An interface definition that is invoked when an animation ends.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 animated
      animatorRes - the animator resource to be loaded
      listener - 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 animated
      animatorRes - the animator resource to be loaded
      duration - the duration of the animator
      listener - 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 animated
      animatorRes - 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 animated
      animatorRes - the animator resource to be loaded
      duration - 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 rotated
      rotation - 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 rotated
      rotationBy - 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 animated
      alpha - the value to animate to
      listener - 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 animated
      alpha - the value to animate to