oday
07/08/2022, 4:33 PMJorge Domínguez
07/08/2022, 4:42 PMBox
with a Modifier.background()
is enoughoday
07/08/2022, 4:57 PModay
07/08/2022, 4:57 PMandrew
07/08/2022, 5:49 PMandrew
07/08/2022, 5:50 PMandrew
07/08/2022, 5:51 PModay
07/08/2022, 7:22 PMandrew
07/08/2022, 7:27 PModay
07/08/2022, 7:45 PMColton Idle
07/08/2022, 8:00 PMandrew
07/08/2022, 8:04 PMandrew
07/08/2022, 8:04 PMandrew
07/08/2022, 8:05 PMandrew
07/08/2022, 8:05 PMandrew
07/08/2022, 8:06 PModay
07/08/2022, 8:09 PModay
07/08/2022, 8:09 PModay
07/08/2022, 8:10 PMBox(
modifier = modifier
.clip(CircleShape)
.size((size.width / 2).dp, (size.height / 2).dp)
.background(color.copy(alpha = 0.12f))
) {
Icon(
painter = painterResource(id = R.drawable.ic_sample_icon),
modifier = modifier
.size(size.width.dp, size.height.dp)
.align(Alignment.Center),
contentDescription = null
)
}
andrew
07/08/2022, 8:11 PModay
07/08/2022, 8:12 PMandrew
07/08/2022, 8:12 PModay
07/08/2022, 8:13 PModay
07/08/2022, 8:14 PModay
07/08/2022, 8:15 PMandrew
07/08/2022, 8:18 PM