Android.Views.View.SetMeasuredDimension Method

Syntax

[Android.Runtime.Register("setMeasuredDimension", "(II)V", "")]
protected void SetMeasuredDimension (int measuredWidth, int measuredHeight)

Parameters

measuredWidth
The measured width of this view. May be a complex bit mask as defined by View.MeasuredSizeMask and View.MeasuredStateTooSmall.
measuredHeight
The measured height of this view. May be a complex bit mask as defined by View.MeasuredSizeMask and View.MeasuredStateTooSmall.

Remarks

This method must be called by View.OnMeasure(int, System.Int32) to store the measured width and measured height. Failing to do so will trigger an exception at measurement time.

[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