Interface View.OnLayoutChangeListener

Enclosing class:
View
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface View.OnLayoutChangeListener
Interface definition for a callback to be invoked when the layout bounds of a view changes due to layout processing.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • onLayoutChange

      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 - The view whose bounds have changed.
      left - The new value of the view's left property.
      top - The new value of the view's top property.
      right - The new value of the view's right property.
      bottom - The new value of the view's bottom property.
      oldLeft - The previous value of the view's left property.
      oldTop - The previous value of the view's top property.
      oldRight - The previous value of the view's right property.
      oldBottom - The previous value of the view's bottom property.