HeaderHeight

How the expanded header height is determined.

Inheritors

Types

Link copied to clipboard
data class AspectRatio(val ratio: Float, val maxHeight: Dp = Dp.Unspecified) : HeaderHeight

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.

Link copied to clipboard
data class Fixed(val height: Dp) : HeaderHeight

Fixed height in Dp.

Link copied to clipboard
data class Percentage(val percentage: Float, val maxHeight: Dp = Dp.Unspecified) : HeaderHeight

Height as a fraction of the available height, between 0f and 1f (e.g. 0.4f for 40%), capped at maxHeight when specified so tablets and landscape do not produce a towering header.