Open
Description
Description: When you have an AutoCompleteTextView
with android:inputType="none"
(similar to a Spinner) and hide the end icon of the TextInputLayout
using app:endIconMode="none"
then the dropdown menu doesn't show on click anymore.
Expected behavior: The expected behavior is to see the menu on click otherwise the view is not usable.
Minimal sample app repro:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/language_box"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:labelFor="@id/spinner_language_from"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu"
app:endIconMode="none"
app:hintEnabled="false">
<AutoCompleteTextView
android:id="@+id/spinner_language_from"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:inputType="none"/>
</com.google.android.material.textfield.TextInputLayout>
Android API version: 34
Material Library version: 1.12.0
Device: Pixel 8 Emulator