updatePaddingRelative

fun View.updatePaddingRelative(@Px horizontal: Int = -1, @Px vertical: Int = -1)

Updates this view's horizontal or vertical padding.

Receiver

View

Parameters

horizontal

the horizontal padding (px).

vertical

the vertical padding (px).

See also