Added in API level 11

OnLayoutChangeListener

interface 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 Unit
onLayoutChange(v: View!, left: Int, top: Int, right: Int, bottom: Int, oldLeft: Int, oldTop: Int, oldRight: Int, oldBottom: Int)

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

Public methods

onLayoutChange

Added in API level 11
abstract fun onLayoutChange(
    v: View!,
    left: Int,
    top: Int,
    right: Int,
    bottom: Int,
    oldLeft: Int,
    oldTop: Int,
    oldRight: Int,
    oldBottom: Int
): Unit

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.