Questions tagged [android-compose-dropdownmenu]

16 questions
18
votes
4 answers

Jetpack compose popup menu

I am trying to rewrite my project UI using Jetpack compose. Any idea to add popup menu using jetpack compose in android?. like this one below. I tried to implement it using Stack() layout but the results are not up to the mark. @Composable fun…
9
votes
2 answers

Dropdown Button/Wheel Picker/Spinner in Jetpack Compose

Is there any standard implementation in Jetpack Compose for visual component like Spinner/Wheel Picker or Dropdown Button?
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…
5
votes
2 answers

Cannot change the background of DropdownMenu

I'm trying to follow this tutorial But I need more customized UI regarding the dropdown list. I need to make the popup background rounded. But when I added .clip(RoundedCornerShape(20)) into the DropdownMenu's modifier, it still have the white…
4
votes
1 answer

Jetpack compose DropdownMenu With rounded Corners

Hello I can't figure out how to make a cut corners menu in jetpack compose 1.0.0-beta02. I tried wrapping the while menu with a surface but It didn't work. TopAppBar( modifier = Modifier .statusBarsPadding(), title =…
3
votes
1 answer

Exposed drop down menu in Jetpack Compose

Hi, I need help. How to make drop down menu like on photos? Is there any easy way?
2
votes
1 answer

Round corners for Dropdown menu compose android

Before, I posted here, I Googled a lot. I found the following: MaterialTheme(shapes = MaterialTheme.shapes.copy(medium = RoundedCornerShape(16.dp))){} from the following SO post: Jetpack compose DropdownMenu With rounded Corners EDIT: I am using…
1
vote
1 answer

DropdownMenu not showing correctly

Im doing an project and i need to add a dropdownMenu the problem is that when it appears on the screen the menu is at the bottom of the screen. This is the code @OptIn(ExperimentalMaterial3Api::class) @Composable fun QrCreatePhase1(navController:…
1
vote
1 answer

Where is the `toggle` and `toggleModifier` of Jetpact Compose `DropdownMenu`

In Jetpact Compose 1.0.0-alpha11, the below is valid code DropdownMenu( toggle = { Text( text = selected.value.toString(), modifier = Modifier.clickable(onClick = { showMenu = true }), fontSize =…
Elye
  • 53,639
  • 54
  • 212
  • 474
1
vote
3 answers

dropdown list on button click compose

How to create a dropdown menu items on a button click. In Jetpack compose? Like here but for buttons : DropdownMenu( expanded = expanded, onDismissRequest = { expanded = false }, toggle = iconButton, …
0
votes
0 answers

How to add custom item inside DropDownMenuItem in this new version

in this app I have the following custom composable item @Composable fun PriorityItem(priority: Priority) { Row(verticalAlignment = Alignment.CenterVertically) { Canvas(modifier = Modifier.size(PRIORITY_INDICATOR_SIZE)) { …
0
votes
1 answer

How to remove elevation on DropDownMenu in jetpack compose

Im trying to make a DropDownMenu that is going to have transparent background, so that user can see only it's content. I've tried to achieve that by wrapping the DropDownMenu into MaterialTheme composable and override the colors property, and this…
0
votes
0 answers

How to propagate outside click in DropdownMenu to outside UI elements?

I have Row() of IconButtons and for each, I'd like to show DropdownMenu with options that are specific for a particular IconButton. Screen Case: The first icon button is clicked and DropdownMenu is shown. Then I click on the second icon…
0
votes
0 answers

OutlinedTextField in DropdownMenu causes crash

After long press on OutLinedTextFIeld app is crashing. The main need of this code is to be able to search for an item from the menu by typing something into the OutlinedTextField I tried to change location of OutlinedTextField, but it didn't help.…
0
votes
0 answers

How to add a scrollbar to a DropdownMenu in Jetpack Compose?

I'm using a Dropdown menu to fill a TextField. The problem is that the User may not know there are more items to scroll down to, and I'd like to implement a scroll-bar as a good solution to indicate scrollability. TL;DR: Can't reliably attach any…
1
2