Код: Выделить всё
var selectedItem by remember { mutableStateOf(0) }
val items = listOf("Songs", "Artists", "Playlists")
NavigationBar {
items.forEachIndexed { index, item ->
NavigationBarItem(
icon = { Icon(Icons.Filled.Favorite, contentDescription = null) },
label = { Text(item) },
selected = selectedItem == index,
onClick = { selectedItem = index }
)
}
}
Код: Выделить всё
modifier = Modifier.clickable(interactionSource = interactionSource,indication = null){}
Подробнее здесь: https://stackoverflow.com/questions/697 ... mpose-view