ViewGroup.MeasureChildWithMargins(View, Int32, Int32, Int32, Int32) 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);
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 View

The child to measure

parentWidthMeasureSpec
Int32 Int32

The width requirements for this view

widthUsed
Int32 Int32

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

parentHeightMeasureSpec
Int32 Int32

The height requirements for this view

heightUsed
Int32 Int32

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

Remarks

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