setPadding

fun setPadding(left: Int, top: Int, right: Int, bottom: Int)

Sets the padding for this view. The padding values are stored and used as base padding, with additional offsets applied for the floating hint and bottom space.

Parameters

left

The left padding in pixels.

top

The top padding in pixels.

right

The right padding in pixels.

bottom

The bottom padding in pixels.