getTextSize()
the size (in pixels) of the default text size in this TextView.
use
setTextSize(TypedValue.COMPLEX_UNIT_PX, ++tempSize);
setTextSize
uses scaled pixel
by default (setTextSize(int)
), with setTextSize(int, int)
you say the unit to use.