Margin and Padding

Applies to: v0.5 or newer

Padding value#

Property value Description
<paddingStart>dp <paddingTop>dp <paddingEnd>dp <paddingBottom>dp Defines the individual padding values in density-independent pixels.
<paddingStart>, <paddingTop>, <paddingEnd> and <paddingBottom> must be a float >= 0.
<paddingHorizontal>dp <paddingVertical>dp Defines the axis padding values in density-independent pixels.
<paddingHorizontal> and <paddingVertical> must be a float >= 0.
<paddingAll>dp Defines all padding values in density-independent pixels.
<paddingAll> must be a float >= 0.

Margin#

Controls the margin of the element.

  • property-name: margin
  • Inherits implicitly: no
  • Possible values: Padding value

Padding#

Controls the padding of the element.

  • property-name: padding
  • Inherits implicitly: no
  • Possible values: Padding value