setFractionalTextSize

abstract fun setFractionalTextSize(fractionOfHeight: Float)

Sets the text size to be a fraction of the views remaining height after its top and bottompadding have been subtracted.

Equivalent to {@code #setFractionalTextSize(fractionOfHeight, false)}.

Parameters

fractionOfHeight

A fraction between 0 and 1.

abstract fun setFractionalTextSize(fractionOfHeight: Float, ignorePadding: Boolean)

Sets the text size to be a fraction of the height of this view.

Parameters

fractionOfHeight

A fraction between 0 and 1.

ignorePadding

Set to true if {@code fractionOfHeight} should be interpreted as afraction of this view's height ignoring any top and bottom padding. Set to false if{@code fractionOfHeight} should be interpreted as a fraction of this view's remainingheight after the top and bottom padding has been subtracted.