Skip to content

Most visited

Recently visited

navigation
Added in API level 11

View.OnLayoutChangeListener

public static interface View.OnLayoutChangeListener

android.view.View.OnLayoutChangeListener


Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.

Summary

Public methods

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

Called when the layout bounds of a view changes due to layout processing.

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)

Called when the layout bounds of a view changes due to layout processing.

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.