Is there any way to get the linespacing of a TextView
in Android
? I try to find fontMetrics
of the Paint
of the TextView
and do like this:
tv1.getPaint().getFontMetrics(pfm);
float fontTop = pfm.top;
float fontBottom = pfm.bottom;
System.out.println("Line Space >> " + (fontBottom - fontTop));
But it seems that result is the same until I change font size of the TextView
. So how can I get the linespacing of a TextView
?