Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想重复播放一首音乐,直到用户按下切换按钮关闭..
我无法弄清楚如何做到这一点,请帮助
采用
MediaPlayer.setLooping(true);
用于使用 MediaPlayer 重复声音。您可以在setLooping中找到有关它的更多信息