Fractional

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

Sets the text size to be a fraction of the view's remaining height after its top and bottom padding have been subtracted or not.

Constructors

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

Properties

Link copied to clipboard

A fraction between 0 and 1.

Link copied to clipboard
val ignorePadding: Boolean = false

ignore padding during height computations.