setPaddingVertical

fun View.setPaddingVertical(paddingPx: Float?)

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