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
Hello. I try to use FlexibleAdapter in our XMPP-client app - Xabber.
I have: compileSdkVersion 26, test on API 25
I enjoy to work with this adapter, but i also have one trouble.
When i call adapter.updateDataSet(items, false) - recyclerView always start update animation, although i set animate: false. Update animation do not start only if i called recyclerVIew.setItemAnimator(null). But in this case recyclerView do not have all animations.
I need to have all standard animations except update animation. How can I achieve this behavior?Thanks.
The text was updated successfully, but these errors were encountered:
I found information about it in #230. So i just set stableids = false in FlexibleAdapter constructor and this works like i need.
But i have one question - if i set stableids = false, is it reduce list performance? Thanks.
@Str4tocaster, Thank you for your choice.
In issue #230 I talked about setting stableIds true, so only the newly added/removed items will animate. Indeed having false it is like to call directly notifyDataSetChanged() (updateDataSet() calls it) that will bound again all items, so performance are reduced.
With stableIds = true, the RecyclerView will be responsible to find the new items and will animate only them.
To know more I invite you to make some combination experiments with these 2 flags: stableIds (constructor) and animate (updateDataSet).
Hello. I try to use FlexibleAdapter in our XMPP-client app - Xabber.
I have: compileSdkVersion 26, test on API 25
I enjoy to work with this adapter, but i also have one trouble.
When i call adapter.updateDataSet(items, false) - recyclerView always start update animation, although i set animate: false. Update animation do not start only if i called recyclerVIew.setItemAnimator(null). But in this case recyclerView do not have all animations.
I need to have all standard animations except update animation. How can I achieve this behavior?Thanks.
The text was updated successfully, but these errors were encountered: