Home  >  Q&A  >  body text

java - Android 底部导航栏点击没有触摸提示音,但是qq和微信的有,说明实现原理不一样?

怪我咯怪我咯2718 days ago290

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:55:11

    I have never decompiled the WeChat APK, and I am not sure what WeChat uses to implement it. Button has a click sound by default, and of course system manufacturers can also customize it. There are a few points to pay attention to for this type of demand
    1. Whether the system allows touch feedback and sound is turned on;
    2. Whether your View intercepts the onTouch event;
    3. RadioButton and CheckBox should not have click sound effects (I have not verified it exactly Pass).
    If you want to have sound and it is available on all platforms, just customize it

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:55:11

    Android control has a property
    android:soundEffectsEnabled to set whether there are sound effects when clicked or touched

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:55:11

    Add a sound effect yourself. . . That’s it

    reply
    0
  • Cancelreply