chris-horner
10/14/2021, 12:31 AMInteraction
render behind the content of a composable?
Say we have
Box(
modifier = Modifier.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(),
onClick = {}
)
) {
Text("Whaddup")
}
Is there a way to make the ripple render behind the text? (Without doing something like putting another Box
behind the text)xxfast
10/14/2021, 2:33 AMModifier.zIndex()
does anything here?
Box(
modifier = Modifier
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple(),
onClick = {}
)
.zIndex(-1f)
) {
Text(text)
}
xxfast
10/14/2021, 2:44 AMAndrew Neal
10/14/2021, 1:25 PMBox
, but not needing it would be ideal.Louis Pullen-Freilich [G]
10/14/2021, 2:02 PMAndrew Neal
10/14/2021, 2:05 PMchris-horner
10/14/2021, 8:59 PM