Most visited

Recently visited

Added in API level 11

View.OnLayoutChangeListener

public static interface View.OnLayoutChangeListener

android.view.View.OnLayoutChangeListener


由于布局处理而导致视图的布局边界发生更改时调用回调的接口定义。

Summary

Public methods

abstract void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom)

由于布局处理而导致视图的布局边界发生更改时调用。

Public methods

onLayoutChange

Added in API level 11
void onLayoutChange (View v, 
                int left, 
                int top, 
                int right, 
                int bottom, 
                int oldLeft, 
                int oldTop, 
                int oldRight, 
                int oldBottom)

由于布局处理而导致视图的布局边界发生更改时调用。

Parameters
v View: The view whose bounds have changed.
left int: The new value of the view's left property.
top int: The new value of the view's top property.
right int: The new value of the view's right property.
bottom int: The new value of the view's bottom property.
oldLeft int: The previous value of the view's left property.
oldTop int: The previous value of the view's top property.
oldRight int: The previous value of the view's right property.
oldBottom int: The previous value of the view's bottom property.

Hooray!