'Android - allow user to toggle button click sounds on/off
In my app, I want to allow the user to enable or disable sounds from all button clicks. I know that a certain way to do this is to loop through all buttons in the view and set button.isSoundEffectsEnabled = true (Kotlin). Is there a more elegant way to do this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
