setPadding

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

Sets the padding. The view may add to the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from getPaddingLeft(), getPaddingTop(), getPaddingRight(), and getPaddingBottom() may be different from the values set in this call.

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.