【发布时间】:2021-01-30 05:15:06
【问题描述】:
Button(backgroundColor = Color.Yellow) {
Row {
Image(asset = image)
Spacer(4.dp)
Text("Button")
}
}
我不知道为什么我不能在 Button 上使用背景颜色。
我遵循了 Compose Layout 代码实验室。backgroundColor 和 Image() 中的资产有问题。
【问题讨论】:
-
PS:我也是 stackoverflow 的新手。所以,请告诉我我做错了什么:)
标签: android android-button android-jetpack-compose android-compose-button