Dimensions
data class Dimensions(val startDp: Float = 0.0f, val topDp: Float = 0.0f, val endDp: Float = 0.0f, val bottomDp: Float = 0.0f)
Defines the size of each edge of a rectangle. Used to store measurements such as padding or margin values.
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.
Constructors
Link copied to clipboard
Creates a Dimensions instance using the provided measurements.
Creates a Dimensions instance using the provided measurements.