我SwitchPreference为我的应用程序做了一个preferences.
问题是,SwitchPreference当我在打开和关闭之间切换时,它没有显示动画,而是在突然的混蛋中切换.
这是preferences.xml文件的代码:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
android:id="@+id/notification"
android:key="notification"
android:title="@string/notification"
android:defaultValue="true"/>
</PreferenceScreen>
Run Code Online (Sandbox Code Playgroud)
我是初学者,所以请合作,让我知道这里有什么问题.
提前致谢.