setDefaultMargins

fun <T : View> T.setDefaultMargins(bottom: Boolean = true, top: Boolean = false, left: Boolean = true, right: Boolean = true): T

Adds default discord paddings as margins to a View. By default, margins are set for the bottom, left, and right of the View, but not the top.

Return

The View

Parameters

bottom

Whether to set topMargin. Default is true.

top

Whether to set bottomMargin. Default is false.

left

Whether to set leftMargin. Default is true.

right

Whether to set rightMargin. Default is true.