Share via


ViewGroup.LayoutParams.MatchParent Field

Definition

Special value for the height or width requested by a View.

[Android.Runtime.Register("MATCH_PARENT")]
public const int MatchParent = -1;
[<Android.Runtime.Register("MATCH_PARENT")>]
val mutable MatchParent : int

Field Value

Value = -1
Attributes

Remarks

Special value for the height or width requested by a View. MATCH_PARENT means that the view wants to be as big as its parent, minus the parent's padding, if any. Introduced in API Level 8.

Java documentation for android.view.ViewGroup.LayoutParams.MATCH_PARENT.

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