div-match-parent-size

Element size adjusts to a parent element.

JSON

{
  type*: "match_parent",
  weight: "number"
}

Parameters

ParametersDescription
type

string

Required parameter.

The value must always be match_parent.

weight

number

Weight when distributing free space between elements with the size type match_parent inside an element. If the weight isn't specified, the elements will divide the place equally.

Restriction for the value x: x > 0.

ParametersDescription
type

string

Required parameter.

The value must always be match_parent.

weight

number

Weight when distributing free space between elements with the size type match_parent inside an element. If the weight isn't specified, the elements will divide the place equally.

Restriction for the value x: x > 0.