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
{{ message }}
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
when i use custom itemAnimator, i must use notifyItemInserted and notifyItemRemoved instead of notifyDataSetChanged in adapter, in smart adapter how can do it ?
thanks
The text was updated successfully, but these errors were encountered:
Get the adapter (it is returned by default) and save it in a variable so you can access it later. In the adapter you can access all those functions by yourself I guess.
Although I think you couldn't avoid it to call notifyDataSetChanged. I will flag this message so I remove those automatic calls for the next version of the library (or put them under a configurable flag so it is enabled by default but can be disabled).
Now you can call yourAdapter.setAutoDataSetChanged(false) and do the notifyItemInserted and notifyItemRemoved you need by hand. It's live on version 1.1.2 of the library.
when i use custom itemAnimator, i must use
notifyItemInserted
andnotifyItemRemoved
instead ofnotifyDataSetChanged
in adapter, in smart adapter how can do it ?thanks
The text was updated successfully, but these errors were encountered: