Most visited

Recently visited

RecyclerView.OnChildAttachStateChangeListener

public static interface RecyclerView.OnChildAttachStateChangeListener

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


一个Listener接口,可以连接到RecylcerView以在ViewHolder连接到RecyclerView或从RecyclerView分离时得到通知。

Summary

Public methods

abstract void onChildViewAttachedToWindow(View view)

当视图附加到RecyclerView时调用。

abstract void onChildViewDetachedFromWindow(View view)

当视图从RecyclerView分离时调用。

Public methods

onChildViewAttachedToWindow

void onChildViewAttachedToWindow (View view)

当视图附加到RecyclerView时调用。

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

onChildViewDetachedFromWindow

void onChildViewDetachedFromWindow (View view)

当视图从RecyclerView分离时调用。

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

Hooray!