Percentage

data class Percentage(val percentage: Float, val maxHeight: Dp = Dp.Unspecified) : HeaderHeight(source)

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.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard