Skip to content

5.x | AnimatorHelper

Davide Steduto edited this page May 1, 2018 · 9 revisions

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

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

The methods accept: the list of Animators; the view (usually itemView); the RecyclerView or the start value property. But, you can also add a custom Animator to the list of Animators.

ℹ️ Note: All methods automatically add Alpha Animator, to avoid that the view is initially displayed at the original position before animation starts. Alpha animation will help to hide this issue.

⚠️ Warning: ScaleAnimator and shadows projected with elevation, have problems on devices with API >= 23. App will crash with no clue.

Class location 👓

eu.davidea.flexibleadapter.helpers
  |_ AnimatorHelper
Clone this wiki locally