setPaddingHorizontal

fun View.setPaddingHorizontal(paddingPx: Float?)

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