recordPreLayoutInformation
Called by the RecyclerView before the layout begins. Item animator should record necessary information about the View before it is potentially rebound, moved or removed.
The data returned from this method will be passed to the related animate**
methods.
Note that this method may be called after pre-layout phase if LayoutManager adds new Views to the layout in pre-layout pass.
The default implementation returns an ItemHolderInfo which holds the bounds of the View and the adapter change flags.
Return
An ItemHolderInfo instance that preserves necessary information about the ViewHolder. This object will be passed back to related animate**
methods after layout is complete.
Parameters
The current State of RecyclerView which includes some useful data about the layout that will be calculated.
The ViewHolder whose information should be recorded.
Additional information about what changes happened in the Adapter about the Item represented by this ViewHolder. For instance, if item is deleted from the adapter, FLAG_REMOVED will be set.
The payload list that was previously passed to notifyItemChanged or notifyItemRangeChanged.