Hello folks, I have an issue with the dropdown men...
# compose-android
c
Hello folks, I have an issue with the dropdown menu, I’m trying to show a string of 100 items in a dropdown, when I do this there’s a very obvious performance hit and it takes a long time to display the dropdown each time I click on the icon. I considered using a LazyColumn here but this isn’t recommended based on the docs, how do I go about this?
c
UX-wise it not a good approach to show that many items in a drop-down. You’d come up with a different concept like when clicking on the button, open a bottom sheet where you can use a lazy list and also add search and filtering to it.
c
Yeah, agree about the UX issue, thing is this is a dropdown of country codes for a phone number input screen, so while it can filter the appropriate country code based on the input, we also want to be able to use the drop down to select one
c
So what you actually want is a “suggestion” view that already shows with no input? You can just com up with your own implementation of a
androidx.compose.ui.window.Popup
.
👍 1
c
It does show a hint with an input, so it’s more of a design requirement thing. I’ll suggest again without the dropdown but explore the custom popup. Thanks