Add basic animations to navigation to MediaInfoFragment
This commit is contained in:
parent
cb721ac988
commit
e254709f91
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue