gpt4 book ai didi

android - RingtonePreference 默认值

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:17:52 25 4
gpt4 key购买 nike

我的首选项屏幕有这段代码,

<RingtonePreference 
android:key="notification_sound"
android:ringtoneType="notification"
android:title="Notification Sound"
android:showDefault="true"
android:showSilent="true" />

我想在 xml 中将 RingtonePreference 的默认值设置为 Default Notification Sound,该怎么做?

谢谢

最佳答案

我找到了解决方案,感谢 Joe,defaultValue 必须是:

android:defaultValue="content://settings/system/notification_sound"

关于android - RingtonePreference 默认值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8313542/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com