setContentPadding

open fun setContentPadding(@Dimension left: Int, @Dimension top: Int, @Dimension right: Int, @Dimension bottom: Int)

Set additional padding on the image that is not applied to the background.

Parameters

left

the padding on the left of the image in pixels

top

the padding on the top of the image in pixels

right

the padding on the right of the image in pixels

bottom

the padding on the bottom of the image in pixels