/** Text can be added above an icon in Jetpack Compose by using a combination of the Row and Column composables. The Row composable lays out its children in a single row while the Column composable lays out its children in a single column. To add text above the icon, the Row composable should be used first, followed by the Column composable. This will allow the text to be placed on the top of the icon. For example, the following code will add text above an icon: ***/
Row {
Text(text = "Text Above Icon")
Column {
Icon(... )
}
}
2条答案
按热度按时间8xiog9wr1#
您可以使用方块。方块版面配置的子系会彼此堆栈。
q5iwbnjs2#