padding

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

Sets internal spacing (inside the tile's border, around its content) independently per edge, in dp.

Parameters

top

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

end

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

bottom

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

start

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


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

Sets internal spacing (inside the tile's border, around its content), symmetric on each axis, in dp.

Parameters

horizontal

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

vertical

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


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

Sets internal spacing (inside the tile's border, around its content), symmetric horizontally but independent top/bottom, in dp.

Parameters

horizontal

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

top

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

bottom

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