【发布时间】:2020-10-21 18:03:43
【问题描述】:
我试图在 IconButton 下方放置一些文本,但我就是找不到方法。相反,它只是在 IconButton 旁边 TopAppBar
Column {
TopAppBar(
modifier = modifier,
elevation = 0.dp,
contentColor = MaterialTheme.colors.onSurface,
title = {
Text(text = "Jetpack Compose")
},
actions = {
IconButton(onClick = { }) {
Icon(Icons.Filled.Add, tint = Red)
}
Text(text = "Add")
}
)
}
【问题讨论】:
标签: android android-jetpack android-jetpack-compose