addRecyclerListener

Register a listener that will be notified whenever a child view is recycled.

The listeners will be called when a LayoutManager or the RecyclerView decides that a child view is no longer needed. If an application associates data with the item views being recycled, this may be a good place to release or free those resources.

Parameters

listener

Listener to register.