View.SetMeasuredDimension(Int32, Int32) Method

Definition

This method must be called by #onMeasure(int, int) to store the measured width and measured height.

[Android.Runtime.Register("setMeasuredDimension", "(II)V", "")]
protected void SetMeasuredDimension (int measuredWidth, int measuredHeight);
[<Android.Runtime.Register("setMeasuredDimension", "(II)V", "")>]
member this.SetMeasuredDimension : int * int -> unit

Parameters

measuredWidth
Int32

The measured width of this view. May be a complex bit mask as defined by #MEASURED_SIZE_MASK and #MEASURED_STATE_TOO_SMALL.

measuredHeight
Int32

The measured height of this view. May be a complex bit mask as defined by #MEASURED_SIZE_MASK and #MEASURED_STATE_TOO_SMALL.

Attributes

Remarks

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

Java documentation for android.view.View.setMeasuredDimension(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