Playing default android sound of button, clicking onTouch() method

后端 未结 3 795
旧时难觅i
旧时难觅i 2020-12-08 20:13

In my android app I have some buttons, that should work with onTouch() method, course I need to change button\'s text, when finger in ACTION_DOWN position.

3条回答
  •  情深已故
    2020-12-08 20:16

    Use default sounds from /system/media/audio/

    MediaPlayer or SoundPool will help to implement playback.

提交回复
热议问题