Freigeben über


View.ResolveSizeAndState(Int32, Int32, Int32) Method

Definition

Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec.

[Android.Runtime.Register("resolveSizeAndState", "(III)I", "")]
public static int ResolveSizeAndState (int size, int measureSpec, int childMeasuredState);
[<Android.Runtime.Register("resolveSizeAndState", "(III)I", "")>]
static member ResolveSizeAndState : int * int * int -> int

Parameters

size
Int32

How big the view wants to be.

measureSpec
Int32

Constraints imposed by the parent.

childMeasuredState
Int32

Size information bit mask for the view's children.

Returns

Size information bit mask as defined by #MEASURED_SIZE_MASK and #MEASURED_STATE_TOO_SMALL.

Attributes

Remarks

Utility to reconcile a desired size and state, with constraints imposed by a MeasureSpec. Will take the desired size, unless a different size is imposed by the constraints. The returned value is a compound integer, with the resolved size in the #MEASURED_SIZE_MASK bits and optionally the bit #MEASURED_STATE_TOO_SMALL set if the resulting size is smaller than the size the view wants to be.

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