try
mEditText.getTextSize()
it will return in px to convert on sp
float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
sp = px/scaledDensity;
Question
Simple question: I want to know what the default textsize of an EditText is. Does anyone know?
Solution
try
mEditText.getTextSize()
it will return in px to convert on sp
float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
sp = px/scaledDensity;