Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道我们如何添加多个修饰符,例如向 android jetpack 组合添加背景、填充等?
这真的很简单;您可以链接多个修饰符。
Column(modifier = Modifier.preferredHeight(500.dp).padding(100.dp)) { Text("Hello") }
并且顺序很重要;左侧的修饰符元素在右侧的修饰符元素之前应用。
正在添加一个额外的