<animated-selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:id="@+id/normal"
        android:drawable="@drawable/ic_library_outline_24dp"
        android:state_checked="false" />

    <item
        android:id="@+id/checked"
        android:drawable="@drawable/ic_library_filled_24dp"
        android:state_checked="true" />

    <transition
        android:drawable="@drawable/anim_library_enter"
        android:fromId="@id/normal"
        android:toId="@id/checked" />

    <transition
        android:drawable="@drawable/anim_library_leave"
        android:fromId="@id/checked"
        android:toId="@id/normal" />

</animated-selector>