Question

Simple question: I want to know what the default textsize of an EditText is. Does anyone know?

Was it helpful?

Solution

try

mEditText.getTextSize()

it will return in px to convert on sp

float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
 sp =  px/scaledDensity;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top