Disable onClick sound for a View

view story

http://stackoverflow.com – I'm using a LinearLayout (with some views inside) for representing the sound On/Off button in the Settings screen. When I set the OnClickListener to this Layout it automatically plays the system "onClick" sound when clicked. I'd like to play the sound only when the sound is going from 'NoSound' to 'Sound'. How can I supress the sound in the other case? (HowTos)