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.
例如,当您使用音量摇杆提高音量时,会出现音量调节器,而不会干扰正在进行的活动。例如,我将能够继续玩游戏,而不会暂停,并且仍然能够增加音量。我说的是这个音量控制http://imgur.com/Ars7H7w
有谁知道这是如何实现的?可能是源代码?
音量控制可以作为片段来实现。由于 Fragment 有自己的生命周期,它不会干扰底层活动的生命周期。