added in version 24.1.0
belongs to Maven artifact com.android.support:recyclerview-v7:28.0.0-alpha1

RecyclerView.OnChildAttachStateChangeListener

public static interface RecyclerView.OnChildAttachStateChangeListener

android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener
Known Indirect Subclasses


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 24.1.0
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 24.1.0
void onChildViewDetachedFromWindow (View view)

Called when a view is detached from RecyclerView.

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