div-match-parent-size

Element size adjusts to a parent element.

Parameters

Parameters Description
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.

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