AspectRatio

data class AspectRatio(val ratio: Float, val maxHeight: Dp = Dp.Unspecified) : HeaderHeight(source)

Height derived from the available width and a width/height ratio, e.g. 16f / 9f, capped at maxHeight when specified so wide layouts do not produce a towering header.

Constructors

Link copied to clipboard
constructor(ratio: Float, maxHeight: Dp = Dp.Unspecified)

Properties

Link copied to clipboard
Link copied to clipboard