Simple question: I want to know what the default textsize of an EditText is. Does anyone know?
try
mEditText.getTextSize()
it will return in px to convert on sp
float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
sp = px/scaledDensity;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With