Skip to content

5.x | AnimatorHelper

Davide Steduto edited this page Sep 15, 2016 · 9 revisions

This helper object, simplifies the creation of Animators for simple scrolling animations. It contains:

  • alphaAnimator
  • scaleAnimator
  • slideInFromTopAnimator
  • slideInFromBottomAnimator
  • slideInFromLeftAnimator
  • slideInFromRightAnimator

The methods accept the list of Animators, the view (usually itemView) and the RecyclerView or the start value property. You can add your custom Animator to the list of Animators.

NOTE: All methods automatically add Alpha Animator, to avoid the view is initially displayed at the original position, before animation starts. Alpha animation will help to hide this behavior.

NOTE: ScaleAnimator and shadows (made with elevation) have problems on devices with API >= 23. App will crash with no clue.

Clone this wiki locally