nickbutcher / plaid

An Android app which provides design news & inspiration as well as being an example of implementing material design.
Apache License 2.0
16.25k stars 3.16k forks source link

Setting setHasTransientState prevents the `RecyclerView` from binding a new item to a `ViewHolder` in the middle of an animation #614

Open florina-muntenescu opened 5 years ago

florina-muntenescu commented 5 years ago

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.

Originally posted by @nickbutcher in https://github.com/nickbutcher/plaid/pull/541

chpravallika commented 5 years ago

I am going to resolve the project

chpravallika commented 5 years ago

I am going to fix this bug

chpravallika commented 5 years ago

No, I am skipping to resolve that issue