Join Slack
Powered by
Hello, I want to block all tap(click) inside a com...
# compose
k
ken_kentan
07/08/2021, 8:42 AM
Hello, I want to block all tap(click) inside a composable. How can I implement it?
t
Tin Tran
07/08/2021, 8:56 AM
you can try this
Modifier.pointerInput(Unit) { detectTapGestures { } }
k
ken_kentan
07/08/2021, 9:00 AM
It seems not working (I can still tap button etc...)
t
Tin Tran
07/08/2021, 9:03 AM
Can you post the code?
k
ken_kentan
07/08/2021, 9:06 AM
Oops, I put it into parent composable.
ken_kentan
07/08/2021, 9:06 AM
now, it working well. thank you !
👍 1
Open in Slack
Previous
Next