Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.recyclerview:recyclerview:1.0.0-rc01

RecyclerView.OnChildAttachStateChangeListener

public static interface RecyclerView.OnChildAttachStateChangeListener

androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener


A Listener interface that can be attached to a RecylcerView to get notified whenever a ViewHolder is attached to or detached from RecyclerView.

Summary

Public methods

abstract void onChildViewAttachedToWindow(View view)

Called when a view is attached to the RecyclerView.

abstract void onChildViewDetachedFromWindow(View view)

Called when a view is detached from RecyclerView.

Public methods

onChildViewAttachedToWindow

added in version 1.0.0
public abstract void onChildViewAttachedToWindow (View view)

Called when a view is attached to the RecyclerView.

Parameters
view View: The View which is attached to the RecyclerView

onChildViewDetachedFromWindow

added in version 1.0.0
public abstract void onChildViewDetachedFromWindow (View view)

Called when a view is detached from RecyclerView.

Parameters
view View: The View which is being detached from the RecyclerView