setPadding

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

Sets the padding. The view may add on 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