margin

fun margin(top: Int = 0, end: Int = 0, bottom: Int = 0, start: Int = 0)

Sets external spacing (outside the tile's border) independently per edge, in dp.

Parameters

top

Space above the tile, in dp. Defaults to 0.

end

Space after the tile (mirrored under RTL), in dp. Defaults to 0.

bottom

Space below the tile, in dp. Defaults to 0.

start

Space before the tile (mirrored under RTL), in dp. Defaults to 0.


fun margin(horizontal: Int = 0, vertical: Int = 0)

Sets external spacing (outside the tile's border), symmetric on each axis, in dp.

Parameters

horizontal

Space before and after the tile, in dp. Defaults to 0.

vertical

Space above and below the tile, in dp. Defaults to 0.


fun margin(horizontal: Int = 0, top: Int = 0, bottom: Int = 0)

Sets external spacing (outside the tile's border), symmetric horizontally but independent top/bottom, in dp.

Parameters

horizontal

Space before and after the tile, in dp. Defaults to 0.

top

Space above the tile, in dp. Defaults to 0.

bottom

Space below the tile, in dp. Defaults to 0.