mardi 19 juillet 2016

Why SwitchPreference is not showing animation when switching from on to off & vice versa?

I've made a SwitchPreference for my app's preferences.

The problem is that the SwitchPreference is not showing animation when I'm switching between on & off, rather, it is switching with a sudden jerk.

Here's preferences.xml file's code:

<?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>

I'm a beginner, so please cooperate & let me know what's wrong here.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire