Insets

constructor(horizontalDp: Float = 0.0f, verticalDp: Float = 0.0f)

Creates an Insets instance with startDp = endDp and topDp = bottomDp.


constructor(allDp: Float = 0.0f)

Creates an Insets instance with a common size for all four insets.


constructor(startDp: Float = 0.0f, topDp: Float = 0.0f, endDp: Float = 0.0f, bottomDp: Float = 0.0f)

Parameters

startDp

the start inset’s size (in dp).

topDp

the top inset’s size (in dp).

endDp

the end inset’s size (in dp).

bottomDp

the bottom inset’s size (in dp).