setPadding

fun View.setPadding(paddingPx: Float?)

Sets the padding of the View inside a ViewGroup to the given paddingPx. The fractional part, if any, is rounded down towards zero. If paddingPx is null, the padding is set to 0.