Package 

Class AnimatorHelper

    • Method Detail

      • alphaAnimator

         static void alphaAnimator(@NonNull() List<Animator> animators, @NonNull() View view, @FloatRange(from = 0.0, to = 1.0) float alphaFrom)

        This is the default animator.

        Parameters:
        animators - user defined list of animators
        view - itemView to animate
        alphaFrom - starting alpha value
      • slideInFromLeftAnimator

         static void slideInFromLeftAnimator(@NonNull() List<Animator> animators, @NonNull() View view, RecyclerView recyclerView, @FloatRange(from = 0.0, to = 1.0) float percent)

        Item will slide from Left to Right.

        Parameters:
        animators - user defined list of animators
        view - itemView to animate
        percent - any % multiplier (between 0 and 1) of the LayoutManager Width
      • slideInFromRightAnimator

         static void slideInFromRightAnimator(@NonNull() List<Animator> animators, @NonNull() View view, RecyclerView recyclerView, @FloatRange(from = 0.0, to = 1.0) float percent)

        Item will slide from Right to Left.

        Parameters:
        animators - user defined list of animators
        view - ItemView to animate
        percent - Any % multiplier (between 0 and 1) of the LayoutManager Width
      • scaleAnimator

         static void scaleAnimator(@NonNull() List<Animator> animators, @NonNull() View view, @FloatRange(from = 0.0, to = 1.0) float scaleFrom)

        Item will scale to {@code 1.0f}.

        Parameters:
        animators - user defined list of animators
        view - itemView to animate
        scaleFrom - initial scale value
      • flipAnimator

         static void flipAnimator(@NonNull() List<Animator> animators, @NonNull() View view)

        Item will flip from {@code 0.0f} to {@code 1.0f}.

        Parameters:
        animators - user defined list of animators
        view - itemView to animate
      • setDuration

         static void setDuration(@NonNull() List<Animator> animators, @IntRange(from = 0) long duration)

        Adds a custom duration to the current view.

        Parameters:
        animators - user defined list of animators
        duration - duration in milliseconds