Default inputType of EditText in android

Nid*_*esh 11 android android-layout

Suppose I have an EditText in my layout.

<EditText
    android:id="@+id/username"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:hint="@string/username"
    />
Run Code Online (Sandbox Code Playgroud)

We can set the inputType for this EditText as text, number, phone, textPassword, etc. What will be the inputType of the EditText by default?

Gab*_*han 12

It will be text with no special options. So just TYPE_CLASS_TEXT


Fav*_* Kv 8

经过一番研究发现默认的Edittext InputType将是InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE

这是十六进制:0x20001或十进制:131073