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

Option to disable the start delay #176

Open
Boros122 opened this issue Oct 17, 2019 · 1 comment
Open

Option to disable the start delay #176

Boros122 opened this issue Oct 17, 2019 · 1 comment

Comments

@Boros122
Copy link

The library is very cool, but I have some problems when I use in a recycler view with infinite scroll.
When new items added to recycler view at the bottom during infinite scroll, the animation duration getting bigger and bigger according to the item size of the recycler view.
protected long getAddDelay(final RecyclerView.ViewHolder holder) { return Math.abs(holder.getAdapterPosition() * getAddDuration() / 4); }
A more customisable delay manipulation will be a good extension for this library.

@BehnamMaboodi
Copy link

I faced a similar issue.
This is a serious problem and this library is not usable for an infinite scroll recycler view at all without this option. a better solution is to calculate the delay according to the number of items visible in the list, not the adapter position (which can easily get larger than 50).
the easiest option is to disable the delay completely by extending the desired item animator class in the end project.

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

2 participants