-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[AutoCompleteTextView] Exposed Dropdown Menu not showing items #2012
Comments
I got the same problem, with setText("something", false) change the fragment and coming back only shows selected item on the list |
You can implement this extention on onClickListener to make all list keep showing after it clicked.
And also add focusable="false" to AutoCompleteTextView in xml. |
Any update on this? |
The same problem |
Same problem seen, any updates ? |
same issue, in 1.4.0-rc01 as well |
This does seem to work as a temp workaround 🤔 🙏 |
Currently experiencing the same problem here, does any one have a fix for this? |
Temp solution working for me is to move part of the code to onResume():
|
Same problem on material version 1.4.0 had to implement custom array adapter with custom/no filter |
this worked for me if it got fixed just update this issue thanks |
If it is in fragment you better put this extension in onResume, this way filters are canceled automatically. |
It's a duplicate of #1464. Unfortunately it's an Android framework issue and I'm trying to push for a workaround on the Material side or AppCompat. |
Faced the same problem. |
Faced the same damn problem, here it solves putting all in onResume, as already written by someone else: |
This works perfectly, thank you ! |
This is still a problem at 2022.12.01 using material:1.7.0 |
Same problem (material:1.4). The problem was solved by putting an ArrayAdapter in the onResume() method. |
As of now (Sept 2023) this bug still exists in material 1.9 |
this issue still happening for me... in material 1.10.0 |
Description:
Exposed Dropdown Menu doesn't show items after user selection and fragment transition.
Following is the basic xml declaration:
And, the declared code on the fragment (inside
onViewCreated()
):As mentioned here, it was set on
AutoCompleteTextView's
setText method (dropdown.setText("", false)) the filter parameter as false. However, after navigating to a next fragment and coming back to it, only the pre-selected text is shown on the dropdown.Fragments are changed using navigation component (v.
2.3.2
).Expected behavior: Dropdown should show all items.
Android API version:
Android API 30
Material Library version:
1.3.0-rc01
Device:
Emulator - Pixel 4 XL
The text was updated successfully, but these errors were encountered: