Most visited

Recently visited

Added in API level 18

ViewTreeObserver.OnWindowAttachListener

public static interface ViewTreeObserver.OnWindowAttachListener

android.view.ViewTreeObserver.OnWindowAttachListener


将视图层次结构附加到窗口并从窗口分离时调用的回调接口定义。

Summary

Public methods

abstract void onWindowAttached()

将视图层次结构附加到窗口时调用的回调方法

abstract void onWindowDetached()

当视图层次从窗口分离时调用的回调方法

Public methods

onWindowAttached

Added in API level 18
void onWindowAttached ()

将视图层次结构附加到窗口时调用的回调方法

onWindowDetached

Added in API level 18
void onWindowDetached ()

当视图层次从窗口分离时调用的回调方法

Hooray!