Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default ItemAnimators don't use interpolator from constructor #191

Open
ggolyakov opened this issue Mar 23, 2021 · 0 comments
Open

Default ItemAnimators don't use interpolator from constructor #191

ggolyakov opened this issue Mar 23, 2021 · 0 comments

Comments

@ggolyakov
Copy link

ggolyakov commented Mar 23, 2021

For example
FadeInAnimator

`  override fun animateRemoveImpl(holder: RecyclerView.ViewHolder) {
    holder.itemView.animate().apply {
      alpha(0f)
      duration = removeDuration
      interpolator = interpolator
      setListener(DefaultRemoveAnimatorListener(holder))
      startDelay = getRemoveDelay(holder)
    }.start()
  }`

The code interpolator = interpolator is similar to ViewPropertyAnimator.setInterpolator(ViewPropertyAnimator.getInterpolator())

To fix, you need to use interpolator = [email protected]

FideInAnimator

Library version : 4.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant