div-size-unit-value

No description yet.

Parameters

Parameters Description
value

int

Required parameter.

Element size.

Restriction for the value x: x >= 0.

unit

string

Unit of measurement:

  • px — a physical pixel.
  • dp — a logical pixel that doesn't depend on screen density.
  • sp — a logical pixel that depends on the font size on a device. Specify height in sp. Only available on Android.
  • Possible values: dp, sp, px.

    Default value: dp.

    JSON
    {
      unit: "string",
      value*: "int"
    }