PlayerAndroid/app/src/main/res/navigation/main_graph.xml

85 lines
3.1 KiB
XML
Raw Normal View History

2020-08-11 18:29:44 +00:00
<?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/retro_graph"
app:startDestination="@id/libraryFragment">
<include app:graph="@navigation/settings_graph" />
<include app:graph="@navigation/library_graph" />
<fragment
android:id="@+id/genreDetailsFragment"
android:name="code.name.monkey.retromusic.fragments.genres.GenreDetailsFragment"
android:label="GenreDetailsFragment"
tools:layout="@layout/fragment_playlist_detail">
<argument
android:name="extra_genre"
app:argType="code.name.monkey.retromusic.model.Genre" />
</fragment>
<fragment
android:id="@+id/playlistDetailsFragment"
android:name="code.name.monkey.retromusic.fragments.playlists.PlaylistDetailsFragment"
android:label="PlaylistDetailsFragment"
tools:layout="@layout/fragment_playlist_detail">
<argument
android:name="extra_playlist"
app:argType="code.name.monkey.retromusic.model.Playlist" />
</fragment>
<fragment
android:id="@+id/albumDetailsFragment"
android:name="code.name.monkey.retromusic.fragments.albums.AlbumDetailsFragment"
android:label="AlbumDetailsFragment"
tools:layout="@layout/activity_album_details">
<argument
android:name="extra_album_id"
app:argType="integer" />
</fragment>
<fragment
android:id="@+id/artistDetailsFragment"
android:name="code.name.monkey.retromusic.fragments.artists.ArtistDetailsFragment"
android:label="ArtistDetailsFragment"
tools:layout="@layout/fragment_artist_details">
<argument
android:name="extra_artist_id"
app:argType="integer" />
</fragment>
<activity
android:id="@+id/action_search"
android:name="code.name.monkey.retromusic.activities.search.SearchActivity"
android:label="Search"
tools:layout="@layout/activity_search" />
<fragment
android:id="@+id/libraryFragment"
android:name="code.name.monkey.retromusic.fragments.library.LibraryFragment"
android:label="LibraryFragment"
tools:layout="@layout/fragment_library">
<action
android:id="@+id/action_main_to_library"
app:destination="@id/library_graph" />
<action
android:id="@+id/action_main_to_settings"
app:destination="@id/settings_graph" />
</fragment>
<fragment
android:id="@+id/searchFragment"
android:name="code.name.monkey.retromusic.activities.search.SearchFragment"
android:label="SearchFragment"
tools:layout="@layout/fragment_search" />
<fragment
android:id="@+id/settingsFragment"
android:name="code.name.monkey.retromusic.fragments.settings.SettingsFragment"
android:label="SettingsFragment"
tools:layout="@layout/fragment_settings" />
</navigation>