Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextInputLayout + AutoCompleteTextView] Dialog doesn't show on click when icon is hidden #4365

Open
memostark opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels

Comments

@memostark
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants