You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: