Condividi tramite


ViewGroup.MeasureChildren(Int32, Int32) Method

Definition

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

[Android.Runtime.Register("measureChildren", "(II)V", "GetMeasureChildren_IIHandler")]
protected virtual void MeasureChildren (int widthMeasureSpec, int heightMeasureSpec);
[<Android.Runtime.Register("measureChildren", "(II)V", "GetMeasureChildren_IIHandler")>]
abstract member MeasureChildren : int * int -> unit
override this.MeasureChildren : int * int -> unit

Parameters

widthMeasureSpec
Int32

The width requirements for this view

heightMeasureSpec
Int32

The height requirements for this view

Attributes

Remarks

Ask all of the children of this view to measure themselves, taking into account both the MeasureSpec requirements for this view and its padding. We skip children that are in the GONE state The heavy lifting is done in getChildMeasureSpec.

Java documentation for android.view.ViewGroup.measureChildren(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