Add some default animations for navigating to LibraryFragment

This commit is contained in:
Jarne Demeulemeester 2021-06-21 10:49:25 +02:00
parent 1602250415
commit a818aa7f18
No known key found for this signature in database
GPG key ID: B61B7B150DB6A6D2

View file

@ -12,7 +12,11 @@
tools:layout="@layout/fragment_home" > tools:layout="@layout/fragment_home" >
<action <action
android:id="@+id/action_navigation_home_to_libraryFragment" android:id="@+id/action_navigation_home_to_libraryFragment"
app:destination="@id/libraryFragment" /> app:destination="@id/libraryFragment"
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
@ -22,7 +26,11 @@
tools:layout="@layout/fragment_media"> tools:layout="@layout/fragment_media">
<action <action
android:id="@+id/action_navigation_media_to_libraryFragment" android:id="@+id/action_navigation_media_to_libraryFragment"
app:destination="@id/libraryFragment" /> app:destination="@id/libraryFragment"
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