RecyclerView.OnChildAttachStateChangeListener


interface RecyclerView.OnChildAttachStateChangeListener

Known direct subclasses
ItemTouchHelper

This is a utility class to add swipe to dismiss and drag &drop support to RecyclerView.


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 functions

Unit

Called when a view is attached to the RecyclerView.

Unit

Called when a view is detached from RecyclerView.

Public functions

onChildViewAttachedToWindow

Added in 1.0.0
fun onChildViewAttachedToWindow(view: View): Unit

Called when a view is attached to the RecyclerView.

Parameters
view: View

The View which is attached to the RecyclerView

onChildViewDetachedFromWindow

Added in 1.0.0
fun onChildViewDetachedFromWindow(view: View): Unit

Called when a view is detached from RecyclerView.

Parameters
view: View

The View which is being detached from the RecyclerView