public static interface View.OnAttachStateChangeListener
android.view.View.OnAttachStateChangeListener |
当该视图附加到窗口或从窗口分离时,将调用回调的接口定义。
Public methods |
|
---|---|
abstract void |
onViewAttachedToWindow(View v) 当视图连接到窗口时调用。 |
abstract void |
onViewDetachedFromWindow(View v) 当视图从窗口分离时调用。 |
void onViewAttachedToWindow (View v)
当视图连接到窗口时调用。
Parameters | |
---|---|
v |
View : The view that was attached |
void onViewDetachedFromWindow (View v)
当视图从窗口分离时调用。
Parameters | |
---|---|
v |
View : The view that was detached |