https://kotlinlang.org logo
n

Nat Strangerweather

02/07/2021, 9:54 AM
Someone on StackOverflow is asking a question about button click sounds. I'd like to know the answer too, as I noticed my compose buttons do not make any touch sounds when clicked. Any ideas? https://stackoverflow.com/q/66080018/5513788
c

Colton Idle

02/07/2021, 6:12 PM
I replaced a simple screen that has a single onLongItemClick listener and in legacy android view land that resulted in a vibration, but in compose it doesn't do anything. wonder if thats the same issue here.
n

Nat Strangerweather

02/07/2021, 6:44 PM
Sounds very likely to me...
n

nglauber

02/08/2021, 1:37 PM
I posted an answer there… not sure if it’s the best solution, but it worked 🙂
n

Nat Strangerweather

02/08/2021, 5:08 PM
Upvoted, thanks for this, although ideally in future the click sound will be there by default, but until then this looks like a good option! 😉
🚀 1
👍 1
2 Views