Most visited

Recently visited

Added in API level 12

View.OnAttachStateChangeListener

public static interface View.OnAttachStateChangeListener

android.view.View.OnAttachStateChangeListener


当该视图附加到窗口或从窗口分离时,将调用回调的接口定义。

Summary

Public methods

abstract void onViewAttachedToWindow(View v)

当视图连接到窗口时调用。

abstract void onViewDetachedFromWindow(View v)

当视图从窗口分离时调用。

Public methods

onViewAttachedToWindow

Added in API level 12
void onViewAttachedToWindow (View v)

当视图连接到窗口时调用。

Parameters
v View: The view that was attached

onViewDetachedFromWindow

Added in API level 12
void onViewDetachedFromWindow (View v)

当视图从窗口分离时调用。

Parameters
v View: The view that was detached

Hooray!