Setting setHasTransientState prevents the RecyclerView from binding a new item to a ViewHolder in the middle of an animation which would be undesirable. We could override onFailedToRecycleView and cancel any ongoing animations and return to the view pool… but the correct thing to do is to actually use a proper RecyclerView.ItemAnimator which is more involved. The transient state flag at leasts stops the issue at the cost of creating a new ViewHolder.
Setting setHasTransientState prevents the
RecyclerView
from binding a new item to aViewHolder
in the middle of an animation which would be undesirable. We could overrideonFailedToRecycleView
and cancel any ongoing animations and return to the view pool… but the correct thing to do is to actually use a properRecyclerView.ItemAnimator
which is more involved. The transient state flag at leasts stops the issue at the cost of creating a newViewHolder
.Originally posted by @nickbutcher in https://github.com/nickbutcher/plaid/pull/541