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.
View.playSoundEffec()当按钮获得焦点时,我正在尝试播放 soundEffect (使用方法)。
View.playSoundEffec()
问题是除非启用目标手机的声音选择,否则效果永远不会播放(可以从以下位置启用Settings => Sounds & display => Audible Selection:)
Settings => Sounds & display => Audible Selection
我想要的是,当未启用有声选择时,我想以编程方式启用它。这可能吗 ?