Colton Idle
11/04/2021, 11:09 PMColton Idle
11/04/2021, 11:25 PMBox(
modifier = modifier.background(Color(0x4DFFFFFF)).clip(RoundedCornerShape(16.dp)).graphicsLayer(clip = false)
) {
Column {
Row(modifier = Modifier.offset(y = (-8).dp), verticalAlignment = Alignment.CenterVertically) {
Text(text = "TESTING")
}
}
}
George Mount
11/04/2021, 11:27 PMclip(RoundedCornerShape(16.dp))
which will clip your contents. The extra graphicsLayer(clip=false)
doesn't modify the clip that you added, it is just adding a new (unnecessary) graphicsLayer.George Mount
11/04/2021, 11:28 PMclip(RoundedCornerShape)
-- if you want the outline or background, you should be able to shape both of those.Colton Idle
11/04/2021, 11:29 PMColton Idle
11/04/2021, 11:29 PMGeorge Mount
11/04/2021, 11:33 PMBox(Modifier
.border(1.dp, darkYellow, RoundedShape)
.background(yellow, RoundedShape)) {
soccerBalls()
}
-- sorry, I only included the parts about the border and backgroundGeorge Mount
11/04/2021, 11:33 PMColumn
instead of a Box
if you're certain that the contents are in a column.Colton Idle
11/04/2021, 11:34 PMColton Idle
11/04/2021, 11:37 PM