recordPostLayoutInformation

Called by the RecyclerView after the layout is complete. Item animator should record necessary information about the View's final state.

The data returned from this method will be passed to the related animate** methods.

The default implementation returns an ItemHolderInfo which holds the bounds of the View.

Return

An ItemHolderInfo that preserves necessary information about the ViewHolder. This object will be passed back to related animate** methods when RecyclerView decides how items should be animated.

Parameters

state

The current State of RecyclerView which includes some useful data about the layout that will be calculated.

viewHolder

The ViewHolder whose information should be recorded.

See also