public static interface ViewTreeObserver.OnGlobalLayoutListener

android.view.ViewTreeObserver.OnGlobalLayoutListener



Interface definition for a callback to be invoked when the global layout state or the visibility of views within the view tree changes.

Summary

Public methods

abstract void onGlobalLayout()

Callback method to be invoked when the global layout state or the visibility of views within the view tree changes

Public methods

onGlobalLayout

public abstract void onGlobalLayout ()

Callback method to be invoked when the global layout state or the visibility of views within the view tree changes

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 2025-04-17 UTC.