Android, Accessibility, Kotlin, Android App Development, Jetpack Compose.
.size(100.dp) .background(if (clicked) Color.DarkGray else Color.LightGray) ) { Box( Modifier .align(Alignment.Center) .clickable { clicked = !clicked } .background(Color.Black) .size(1.dp) ) } } To prevent possible overlap between touch areas of different composables, you should always aim to use