Is there any solution to apply rounded corners in Rows or Columns in Jetpack Glance
cornerRadius works only in android S+, so any workaround ?
@Composable
fun ParkingSessionsWidget(sessions: List<ParkingSession>) {
Column(
modifier = GlanceModifier.fillMaxWidth()
.height(100.dp)
.padding(16.dp)
.background(Color.White)
.cornerRadius(100.dp)
) {
Text(
text = "Active sessions",
style = defaultTextStyle.copy(fontSize = 20.sp, fontWeight = FontWeight.Bold),
modifier = GlanceModifier.padding(16.dp)
)
}
}
New contributor
Anis Amh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.