setPadding

open fun setPadding(start: Float = 0.0f, top: Float = 0.0f, end: Float = 0.0f, bottom: Float = 0.0f)

Updates the padding for each side individually.


open fun setPadding(horizontal: Float = 0.0f, vertical: Float = 0.0f)

Updates the horizontal and vertical padding.


open fun setPadding(all: Float = 0.0f)

Sets a common padding value for each side.