How to play, pause and stop a song with only one button?

前端 未结 4 702
野的像风
野的像风 2021-01-16 10:23

I have tried to make an application in android to play, pause and stop a song with one button only.

Can anyone show me how can I make that application?

4条回答
  •  伪装坚强ぢ
    2021-01-16 10:52

    if you have the reference for the button at onClickListenerObject, you may call setOnClickListener in there.

提交回复
热议问题