Android: What is the default textsize of an EditText?

android, android-edittext, android-layout, java, text-size

Solution

try

mEditText.getTextSize()

it will return in px to convert on sp

float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;
 sp =  px/scaledDensity;

Problem

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

Original source

Related problems