setItemAnimator

Sets the ItemAnimator that will handle animations involving changes to the items in this RecyclerView. By default, RecyclerView instantiates and uses an instance of DefaultItemAnimator. Whether item animations are enabled for the RecyclerView depends on the ItemAnimator and whether the LayoutManager supports item animations.

Parameters

animator

The ItemAnimator being set. If null, no animations will occur when changes occur to the items in this RecyclerView.