Dimensions

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

Creates a Dimensions instance using the provided measurements.


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

Parameters

startDp

the value for the start edge in the dp unit.

topDp

the value for the top edge in the dp unit.

endDp

the value for the end edge in the dp unit.

bottomDp

the value for the bottom edge in the dp unit.