setPadding

fun <P : Padding> P.setPadding(start: Dp = 0.dp, top: Dp = 0.dp, end: Dp = 0.dp, bottom: Dp = 0.dp): P

Sets a padding value for each edge of the rectangle individually.


fun <P : Padding> P.setPadding(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): P

Sets the horizontal and vertical padding for the rectangle.


fun <P : Padding> P.setPadding(all: Dp = 0.dp): P

Sets a common padding value for each edge of the rectangle.