Relative Content

Tag Archive for androidkotlinandroid-jetpack-composeandroid-jetpack-compose-material3

How to reduce height of a composable to wrap content without padding

I’m using DropDownMenuItem with a Text in a DrowpDownMenu, and I need to reduce the DropDownMenuItem height to the height of the Text, or with a minimum padding of 2.dp. Now the height of the DropDownMenuItem is very big on big screens. Is double of the height of the Text. Also, the parent DrowpDownMenu is adding even more height. How can that height be reduced to the Text height?

How to reduce height of a composable to wrap content without padding

I’m using DropDownMenuItem with a Text in a DrowpDownMenu, and I need to reduce the DropDownMenuItem height to the height of the Text, or with a minimum padding of 2.dp. Now the height of the DropDownMenuItem is very big on big screens. Is double of the height of the Text. Also, the parent DrowpDownMenu is adding even more height. How can that height be reduced to the Text height?