setTextSize

open fun setTextSize(size: Float)

Sets the text size in scaled pixels.

Parameters

size

The text size.


open fun setTextSize(unit: Int, size: Float)

Sets the text size to a given unit and value.

Parameters

unit

The desired dimension unit.

size

The desired size in the given units.