[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html [Back]  [Original]

View.OnLayoutChangeListener  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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
public 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.

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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page