Fractional

data class Fractional(val fractionOfHeight: Float, val ignorePadding: Boolean = false) : SubtitleTextSize

Represents a text size calculated as a fraction of the View's height, optionally ignoring the View's vertical padding.

Constructors

Link copied to clipboard
constructor(fractionOfHeight: Float, ignorePadding: Boolean = false)

Properties

Link copied to clipboard

The fraction of the View's height that should be used to calculate the text size, between 0 and 1.

Link copied to clipboard

Whether to subtract the View's vertical padding from its height before calculating the text size.