【发布时间】:2021-10-02 03:02:21
【问题描述】:
我们如何在 Compose 的 AndroidView 中使用 style 属性?下面的代码 sn -p 不起作用。
AndroidView(factory = { context ->
Button(context).apply {
text = "Turn On"
style = "@style/button_style"
}
})
【问题讨论】:
标签: android android-jetpack-compose