Android.Views.View.MeasureSpec.MakeMeasureSpec Method
Creates a measure specification based on the supplied size and mode.

Syntax

[Android.Runtime.Register("makeMeasureSpec", "(II)I", "")]
public static int MakeMeasureSpec (int size, [Android.Runtime.GeneratedEnum] MeasureSpecMode mode)

Parameters

size
the size of the measure specification
mode
the mode of the measure specification

Returns

Documentation for this section has not yet been entered.

Remarks

Creates a measure specification based on the supplied size and mode. The mode must always be one of the following:

Note: On API level 17 and lower, makeMeasureSpec's implementation was such that the order of arguments did not matter and overflow in either value could impact the resulting MeasureSpec. Android.Widget.RelativeLayout was affected by this bug. Apps targeting API levels greater than 17 will get the fixed, more strict behavior.

[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