【发布时间】:2022-10-25 18:18:59
【问题描述】:
。
这就是我的 BottomNavigationItem 的样子。
BottomNavigationItem(
selected = selected,
onClick = {...}
icon = {
Icon(
imageVector = if (selected) navItem.iconFilled else navItem.iconOutlined,
contentDescription = navItem.route,
// modifier = Modifier.background(Color.DarkGray, shape = RoundedCornerShape(10.dp)).padding(10.dp)
)
},
label = {...},
selectedContentColor = MaterialTheme.colors.onPrimary,
unselectedContentColor = MaterialTheme.colors.onPrimary.copy(0.4f)
)
}
}
【问题讨论】:
标签: android android-studio android-jetpack-compose android-jetpack-compose-material3