setTextSize
Set the default text size to a given unit and value. See TypedValue for the possible dimension units.
Example: to set the text size to 14px, use setTextSize(TypedValue.COMPLEX_UNIT_PX, 14);
Parameters
unit
The desired dimension unit
size
The desired size in the given units