setPaddingForInsets

open fun setPaddingForInsets(left: Int, top: Int, right: Int, bottom: Int)

Sets the padding for insets to prevent the content from extending into the insets area. The total visible padding will be the addition of the padding set with this method and the one set by setPadding.

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.