Questions tagged [android-compose-exposeddropdown]
11 questions
48
votes
6 answers
Exposed drop-down menu for jetpack compose
I was wondering if there is a solution for Exposed drop-down menu for jetpack compose?
I couldn't find a proper solution for this component inside jetpack compose. Any help?

Stefan
- 2,829
- 5
- 20
- 44
13
votes
1 answer
Jetpack Compose ExposedDropdownMenu not showing up when pressed
I'm working on a Jetpack Compose (1.3.0-beta03) and Material3 (1.0.0-beta03) app.
I'd like to show the user a simple dropdown with different languages, and the following code isn't very different from what you'll find…

Valerio
- 3,297
- 3
- 27
- 44
6
votes
1 answer
ExposedDropdownMenu expanded crashes the app when navigating to another fragment
I have two ExposedDropdownMenu inside a screen with buttons that trigger navigation to different screens.
Currently, I'm struggling with this crash:
java.lang.IllegalArgumentException: View=androidx.compose.material.internal.PopupLayout{c8ce24f…

Ygor
- 188
- 8
3
votes
2 answers
OutlinedTextField in ExposedDropdownMenuBox regains focus
I am currently observing some strange behavior when using an OutlinedTextField inside of an ExposedDropdownMenuBox. If I have already clicked into the OutlinedTextField once, the focus always jumps back to it when I click into another field or…

c7n
- 1,131
- 16
- 29
3
votes
2 answers
onValueChange of textfield is not triggered when selecting an option from exposed dropdownMenu composable, jetpack compose
I am trying to implement an exposed dropdown composable which I can use in multiple parts of my android jetpack compose app. Whenever I select an item from the dropdownMenu the selectedOption is set in the composable and assigned to the textfield…

Fiehra
- 659
- 6
- 23
2
votes
1 answer
Search with DropDownItem in OutlineTextField not overlaying over content
I am trying to achieve search functionality in compose using DropDownItem but it is displaying below OutlineTextField. All the available option is not displaying over the content like DropDown menu.
Effort 1: Tried using DropDownMenu but in that…

Arpit Patel
- 7,212
- 5
- 56
- 67
2
votes
0 answers
Jetpack Compose ExposedDropdownMenu always going up
I'm trying to implement ExposedDropdownMenu - which I want to be displayed underneath TextField - when I set height of dropdown to max. 20 dp then everything is okay. But for any greater value it is always displayed above. Do you know what could be…

voximdo
- 53
- 2
- 14
2
votes
1 answer
Default value for dropdown menu in jetpack compose
I want to select a default value for my dropdown menu as soon as the component renders. Don't want it to set as a label instead I want one of the options from dropdown menu to be selected by default and then the user might change it according to his…

tahadar16
- 31
- 5
1
vote
0 answers
Jetpack Compose - ExposedDropdownMenu - Autocomplete
I'm trying to implement an autocomplete textfield (I sure hope Compose has a built-in one at some point, like XML did) using the ExposedDropdownMenu and while I've gotten it to basically work, it's acting very strange.
If I use this code below…

clamum
- 1,237
- 10
- 18
1
vote
1 answer
Editable Dynamic ExposedDropDownMenuBox in Jetpack Compose
I'm trying to get this drop down menu to be dynamic. When I type into the textfield, I expect the list to be updated (filtered for what the user types in) and the user can select from the filtered drop down list.
I've checked here, the sample code…

gmate
- 39
- 5
1
vote
0 answers
How to detect when spinner opened in compose
I want to detect when my dropdown menu clicked or opened in jetpack compose and perform an operation on that click.
This is the code that I'm Currently using.
Spinner(
modifier = modifier
.fillMaxWidth()
.heightIn(min = 40.dp)
…

Omar Redani
- 131
- 5