1 | initial version |
Yes, you can remove the highlighting on a composable in a LazyRow by setting its background color to transparent. For example:
LazyRow {
items(10) { index ->
Box(
modifier = Modifier
.background(color = Color.Transparent)
.padding(16.dp)
) {
Text(text = "Item $index")
}
}
}
Here, the Box
composable has its background color set to transparent using Modifier.background(color = Color.Transparent)
, which removes the highlighting effect.