Aracılığıyla paylaş


View.GetDefaultSize(Int32, Int32) Method

Definition

Utility to return a default size.

[Android.Runtime.Register("getDefaultSize", "(II)I", "")]
public static int GetDefaultSize (int size, int measureSpec);
[<Android.Runtime.Register("getDefaultSize", "(II)I", "")>]
static member GetDefaultSize : int * int -> int

Parameters

size
Int32

Default size for this view

measureSpec
Int32

Constraints imposed by the parent

Returns

The size this view should be.

Attributes

Remarks

Utility to return a default size. Uses the supplied size if the MeasureSpec imposed no constraints. Will get larger if allowed by the MeasureSpec.

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