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

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

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