[英]How to disable audio tone on click of any button in my android application?
I have custom android application. 我有自定义的android应用程序。 In which when i click on any button of that application it gives some audio tone(i think it comes from audio Finger). 当我单击该应用程序的任何按钮时,它会发出一些音频(我认为它来自音频手指)。 I want to disable it just for my application. 我只想为我的应用程序禁用它。
so how can i disable audio tone on button of my android application? 所以我该如何禁用我的android应用程序按钮上的音频呢?
You can go with this code: 您可以使用以下代码:
YOUR_BUTTON.setSoundEffectsEnabled(false);
OR 要么
Also you can give property with xml: 您也可以使用xml赋予属性:
android:soundEffectsEnabled="false"
Reference site: Android View Doc 参考网站: Android View文档
Hope it will help you. 希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.