public interface

RecyclerView.OnChildAttachStateChangeListener

 androidx.recyclerview.widget.RecyclerView.OnChildAttachStateChangeListener

Subclasses:

ItemTouchHelper

Overview

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

Summary

Methods
public voidonChildViewAttachedToWindow(View view)

Called when a view is attached to the RecyclerView.

public voidonChildViewDetachedFromWindow(View view)

Called when a view is detached from RecyclerView.

Methods

public void onChildViewAttachedToWindow(View view)

Called when a view is attached to the RecyclerView.

Parameters:

view: The View which is attached to the RecyclerView

public void onChildViewDetachedFromWindow(View view)

Called when a view is detached from RecyclerView.

Parameters:

view: The View which is being detached from the RecyclerView