Knowing the TextView size in sp through
android: textSize = "XXsp"
Is it possible to calculate what height it will have in px on the device under test in advance? android:layout_height="wrap_content" , no paddings, android: includeFontPadding = "false"
UPD Tested on several emulators and phone, it looks like the formula looks like this:
height = ОКРУГЛВВЕРХ(textSize * scaledDensity * (7/6)) I do not know just whether it will work on all devices.