Android.Views.View.Measure Method

Syntax

[Android.Runtime.Register("measure", "(II)V", "")]
public void Measure (int widthMeasureSpec, int heightMeasureSpec)

See Also

View.OnMeasure(int, System.Int32)

Parameters

widthMeasureSpec
Horizontal space requirements as imposed by the parent
heightMeasureSpec
Vertical space requirements as imposed by the parent

Remarks

This is called to find out how big a view should be. The parent supplies constraint information in the width and height parameters.

The actual measurement work of a view is performed in View.OnMeasure(int, System.Int32), called by this method. Therefore, only View.OnMeasure(int, System.Int32) can and must be overridden by subclasses.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1