Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

OnChildAttachStateChangeListener

interface 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 Unit

Called when a view is attached to the RecyclerView.

abstract Unit

Called when a view is detached from RecyclerView.

Public methods

onChildViewAttachedToWindow

abstract fun onChildViewAttachedToWindow(@NonNull view: View): Unit

Called when a view is attached to the RecyclerView.

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

onChildViewDetachedFromWindow

abstract fun onChildViewDetachedFromWindow(@NonNull view: View): Unit

Called when a view is detached from RecyclerView.

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