Compartilhar via


ViewTreeObserver.AddOnGlobalLayoutListener Method

Definition

Register a callback to be invoked when the global layout state or the visibility of views within the view tree changes

[Android.Runtime.Register("addOnGlobalLayoutListener", "(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V", "")]
public void AddOnGlobalLayoutListener (Android.Views.ViewTreeObserver.IOnGlobalLayoutListener? listener);
[<Android.Runtime.Register("addOnGlobalLayoutListener", "(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V", "")>]
member this.AddOnGlobalLayoutListener : Android.Views.ViewTreeObserver.IOnGlobalLayoutListener -> unit

Parameters

listener
ViewTreeObserver.IOnGlobalLayoutListener

The callback to add

Attributes

Exceptions

If IsAlive returns false

Remarks

Java documentation for android.view.ViewTreeObserver.addOnGlobalLayoutListener(android.view.OnGlobalLayoutListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to