Getting the default font size of a multiline TextView in Android
android, font-size, textview
Solution
This will return the value in pixels within a context:
float size = new TextView(this).getTextSize();
Problem
I want to have a font-size preference in percentage relative to the default font-size, so I need to get the default font-size for a TextView. How do I get the default font-size of a TextView?