https://kotlinlang.org logo
Title
u

user

07/13/2022, 8:51 PM
How to show pop up on icon long-click in Jetpack Compose Within the Settings app of Android a handy popup appears whenever I long-click on the vertical dots on the top-right corner of the screen. Can this useful feature be launched using Jetpack Compose? Nothing happens when the code below is used.

https://i.stack.imgur.com/NEPFv.png

@Composable fun IconMoreVert() { var showMenu by remember { mutableStateOf(false) } IconButton(onClick = { showMenu = !showMenu }) { Icon(...