setProportionalMargins

fun setProportionalMargins(left: Float, top: Float, right: Float, bottom: Float)

Sets proportional margins or padding. Note: margins are proportional. Meaning a value of 0.1f will produce a 10% margin

Parameters

left

percentage of left margin.

top

percentage of top margin.

right

percentage of right margin.

bottom

percentage of bottom margin.