Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable the click sound when an Android/Java listview item is tapped?

How can I disable the click sound when a listview item is tapped ?

PS: I have android 2.3.4 and create the listview with Java.

Edit: I solved it by adding:

android:soundEffectsEnabled="false"

to the xml of the listview layout.

like image 288
HardCoder Avatar asked Mar 25 '12 15:03

HardCoder


1 Answers

What you're looking for is android:soundEffectsEnabled which can be set in the xml-document with

android:soundEffectsEnabled="false"

or directly in java code with the corresponding

setSoundEffectsEnabled(boolean) method.

like image 167
keyser Avatar answered Sep 27 '22 21:09

keyser