ananas/app/src/main/res/navigation/main_navigation.xml
2021-06-22 17:30:52 +02:00

83 lines
No EOL
3.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_navigation"
app:startDestination="@+id/navigation_home">
<fragment
android:id="@+id/navigation_home"
android:name="dev.jdtech.jellyfin.fragments.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" >
<action
android:id="@+id/action_navigation_home_to_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" />
<action
android:id="@+id/action_navigation_home_to_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
android:id="@+id/navigation_media"
android:name="dev.jdtech.jellyfin.fragments.MediaFragment"
android:label="@string/title_media"
tools:layout="@layout/fragment_media">
<action
android:id="@+id/action_navigation_media_to_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
android:id="@+id/navigation_settings"
android:name="dev.jdtech.jellyfin.fragments.SettingsFragment"
android:label="@string/title_settings"
tools:layout="@layout/fragment_settings" />
<fragment
android:id="@+id/libraryFragment"
android:name="dev.jdtech.jellyfin.fragments.LibraryFragment"
android:label="{libraryName}"
tools:layout="@layout/fragment_library">
<argument
android:name="libraryId"
app:argType="java.util.UUID" />
<argument
android:name="libraryName"
android:defaultValue="Library"
app:argType="string"
app:nullable="true" />
<action
android:id="@+id/action_libraryFragment_to_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
android:id="@+id/mediaInfoFragment"
android:name="dev.jdtech.jellyfin.fragments.MediaInfoFragment"
android:label="{itemName}"
tools:layout="@layout/fragment_media_info">
<argument
android:name="itemId"
app:argType="java.util.UUID" />
<argument
android:name="itemName"
app:argType="string"
app:nullable="true"
android:defaultValue="Media Info" />
</fragment>
</navigation>