I create a particular keyboard with 10 key from 0 ...
# compose
a
I create a particular keyboard with 10 key from 0 to 9 and i used simple text. it works but “button” have any effect when user click text.. is it possibile add a ripple effect or other effect to simulate button press?
message has been deleted
Copy code
for (i in 0..9) {
    Text(text = "$i",
        fontSize = fontSize(R.dimen.textdim_keyboard),
        color = BlackText,
        fontWeight = FontWeight.Bold,
        textAlign = TextAlign.Center,
        modifier = Modifier
            .width(60.dp)
            .height(60.dp)
            .clickable(
                onClick = {}
            )
            )
    Spacer25()
}
z
you can pass a
rememberRipple
to your clickable modifier
for the indication field
a
thanks.. it works..
Copy code
.clickable(
    interactionSource = remember { MutableInteractionSource() },
    indication = rememberRipple(bounded = true), 
    onClick = {  }
)