102 lines
No EOL
4.3 KiB
XML
102 lines
No EOL
4.3 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/nav_main"
|
|
app:startDestination="@id/loading_fragment">
|
|
<fragment
|
|
android:id="@+id/loading_fragment"
|
|
android:name="org.oxycblt.auxio.loading.LoadingFragment"
|
|
android:label="LoadingFragment"
|
|
tools:layout="@layout/fragment_loading">
|
|
<action
|
|
android:id="@+id/action_to_main"
|
|
app:destination="@id/main_fragment"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:popUpTo="@id/loading_fragment"
|
|
app:popUpToInclusive="true"
|
|
app:launchSingleTop="true" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/main_fragment"
|
|
android:name="org.oxycblt.auxio.MainFragment"
|
|
android:label="MainFragment"
|
|
tools:layout="@layout/fragment_main">
|
|
<action
|
|
android:id="@+id/action_show_artist"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/artist_detail_fragment"
|
|
app:launchSingleTop="true" />
|
|
<action
|
|
android:id="@+id/action_show_album"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/album_detail_fragment" />
|
|
<action
|
|
android:id="@+id/action_show_genre"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/genreDetailFragment" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/artist_detail_fragment"
|
|
android:name="org.oxycblt.auxio.detail.ArtistDetailFragment"
|
|
android:label="ArtistDetailFragment"
|
|
tools:layout="@layout/fragment_artist_detail">
|
|
<argument
|
|
android:name="artistId"
|
|
app:argType="long" />
|
|
<action
|
|
android:id="@+id/action_show_album"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/album_detail_fragment" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/album_detail_fragment"
|
|
android:name="org.oxycblt.auxio.detail.AlbumDetailFragment"
|
|
android:label="AlbumDetailFragment"
|
|
tools:layout="@layout/fragment_album_detail">
|
|
<argument
|
|
android:name="albumId"
|
|
app:argType="long" />
|
|
<argument
|
|
android:name="enableParentNav"
|
|
app:argType="boolean" />
|
|
<action
|
|
android:id="@+id/action_show_parent_artist"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/artist_detail_fragment" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/genreDetailFragment"
|
|
android:name="org.oxycblt.auxio.detail.GenreDetailFragment"
|
|
android:label="GenreDetailFragment"
|
|
tools:layout="@layout/fragment_genre_detail">
|
|
<action
|
|
android:id="@+id/action_show_artist"
|
|
app:enterAnim="@anim/fragment_fade_enter"
|
|
app:exitAnim="@anim/fragment_fade_exit"
|
|
app:popEnterAnim="@anim/fragment_fade_enter"
|
|
app:popExitAnim="@anim/fragment_fade_exit"
|
|
app:destination="@id/artist_detail_fragment" />
|
|
<argument
|
|
android:name="genreId"
|
|
app:argType="long" />
|
|
</fragment>
|
|
</navigation> |