Partager via


ViewGroup.MeasureChildWithMargins(View, Int32, Int32, Int32, Int32) Method

Definition

Ask one of the children of this view to measure itself, taking into account both the MeasureSpec requirements for this view and its padding and margins.

[Android.Runtime.Register("measureChildWithMargins", "(Landroid/view/View;IIII)V", "GetMeasureChildWithMargins_Landroid_view_View_IIIIHandler")]
protected virtual void MeasureChildWithMargins (Android.Views.View? child, int parentWidthMeasureSpec, int widthUsed, int parentHeightMeasureSpec, int heightUsed);
[<Android.Runtime.Register("measureChildWithMargins", "(Landroid/view/View;IIII)V", "GetMeasureChildWithMargins_Landroid_view_View_IIIIHandler")>]
abstract member MeasureChildWithMargins : Android.Views.View * int * int * int * int -> unit
override this.MeasureChildWithMargins : Android.Views.View * int * int * int * int -> unit

Parameters

child
View

The child to measure

parentWidthMeasureSpec
Int32

The width requirements for this view

widthUsed
Int32

Extra space that has been used up by the parent horizontally (possibly by other children of the parent)

parentHeightMeasureSpec
Int32

The height requirements for this view

heightUsed
Int32

Extra space that has been used up by the parent vertically (possibly by other children of the parent)

Attributes

Remarks

Ask one of the children of this view to measure itself, taking into account both the MeasureSpec requirements for this view and its padding and margins. The child must have MarginLayoutParams The heavy lifting is done in getChildMeasureSpec.

Java documentation for android.view.ViewGroup.measureChildWithMargins(android.view.View, int, int, int, int).

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