Freigeben über


View.RequestLayout Method

Definition

Call this when something has changed which has invalidated the layout of this view.

[Android.Runtime.Register("requestLayout", "()V", "GetRequestLayoutHandler")]
public virtual void RequestLayout ();
[<Android.Runtime.Register("requestLayout", "()V", "GetRequestLayoutHandler")>]
abstract member RequestLayout : unit -> unit
override this.RequestLayout : unit -> unit
Attributes

Remarks

Call this when something has changed which has invalidated the layout of this view. This will schedule a layout pass of the view tree. This should not be called while the view hierarchy is currently in a layout pass (#isInLayout(). If layout is happening, the request may be honored at the end of the current layout pass (and then layout will run again) or after the current frame is drawn and the next layout occurs.

Subclasses which override this method should call the superclass method to handle possible request-during-layout errors correctly.

Java documentation for android.view.View.requestLayout().

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