I need the current TextSize of the TextView in sp units.
TextSize
TextView
sp
But getTextSize() returns the size in pixels
getTextSize()
pixels
weird to see public field that is adjusted at run time but it works. Standard Dpi is 160 so whatever your device Dpi is, say 240, both density and scaledDensity will show 240/160=1.5 This is how you convert between pixels and sp: px=1.5*sp