Add basic animations to navigation to MediaInfoFragment

This commit is contained in:
Jarne Demeulemeester 2021-06-22 17:30:52 +02:00
parent cb721ac988
commit e254709f91
No known key found for this signature in database
GPG key ID: 60884A0C1EBA43E5
2 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,6 @@
package dev.jdtech.jellyfin.viewmodels package dev.jdtech.jellyfin.viewmodels
import android.app.Application import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData import androidx.lifecycle.MutableLiveData

View file

@ -19,7 +19,11 @@
app:popExitAnim="@anim/nav_default_pop_exit_anim" /> app:popExitAnim="@anim/nav_default_pop_exit_anim" />
<action <action
android:id="@+id/action_navigation_home_to_mediaInfoFragment" android:id="@+id/action_navigation_home_to_mediaInfoFragment"
app:destination="@id/mediaInfoFragment" /> app:destination="@id/mediaInfoFragment"
app:enterAnim="@anim/nav_default_enter_anim"
app:exitAnim="@anim/nav_default_exit_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
</fragment> </fragment>
<fragment <fragment
@ -56,7 +60,11 @@
app:nullable="true" /> app:nullable="true" />
<action <action
android:id="@+id/action_libraryFragment_to_mediaInfoFragment" android:id="@+id/action_libraryFragment_to_mediaInfoFragment"
app:destination="@id/mediaInfoFragment" /> app:destination="@id/mediaInfoFragment"
app:enterAnim="@anim/nav_default_enter_anim"
app:exitAnim="@anim/nav_default_exit_anim"
app:popEnterAnim="@anim/nav_default_pop_enter_anim"
app:popExitAnim="@anim/nav_default_pop_exit_anim" />
</fragment> </fragment>
<fragment <fragment
android:id="@+id/mediaInfoFragment" android:id="@+id/mediaInfoFragment"