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.

max_size

object

Maximum size of an element.

The value has the type div-size-unit-value.

Functionality is under development.

min_size

object

Minimum size of an element.

The value has the type div-size-unit-value.

Functionality is under development.

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",
  max_size: {
    unit: "string",
    value*: "int"
  },
  min_size: {
    unit: "string",
    value*: "int"
  },
  weight: "number"
}