I have a TextInputEditText and a MaterialAutoCompleteTextView inside a TextInputLayout:
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/name">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/category">
<com.google.android.material.textfield.MaterialAutoCompleteTextView
android:id="@+id/category1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.textfield.TextInputLayout>
Apart from the different tag, they are identical. However, this is what it looks like:
The font in the MaterialAutoCompleteTextView is larger and there is no padding.
-
Is there an obvious reason why this is rendered differently?
-
Is there an easy way to make it look like the TextInputEditText (thus, without fiddling)?