Android Navigation code refactor
This commit is contained in:
parent
9552e617b5
commit
23f4fee872
81 changed files with 1235 additions and 919 deletions
|
@ -8,7 +8,7 @@
|
|||
<fragment
|
||||
android:id="@+id/action_album"
|
||||
android:name="code.name.monkey.retromusic.fragments.albums.AlbumsFragment"
|
||||
tools:layout="@layout/fragment_main_activity_recycler_view"/>
|
||||
tools:layout="@layout/fragment_main_activity_recycler_view" />
|
||||
|
||||
<fragment
|
||||
android:id="@+id/action_artist"
|
||||
|
@ -43,6 +43,7 @@
|
|||
<fragment
|
||||
android:id="@+id/action_home"
|
||||
android:name="code.name.monkey.retromusic.fragments.home.HomeFragment"
|
||||
tools:layout="@layout/fragment_banner_home" />
|
||||
android:label=""
|
||||
tools:layout="@layout/fragment_banner_home"/>
|
||||
|
||||
</navigation>
|
|
@ -52,7 +52,7 @@
|
|||
<fragment
|
||||
android:id="@+id/libraryFragment"
|
||||
android:name="code.name.monkey.retromusic.fragments.library.LibraryFragment"
|
||||
android:label="LibraryFragment"
|
||||
android:label=""
|
||||
tools:layout="@layout/fragment_library">
|
||||
<action
|
||||
android:id="@+id/action_main_to_library"
|
||||
|
@ -62,16 +62,25 @@
|
|||
app:destination="@id/settings_graph" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/detailListFragment"
|
||||
android:name="code.name.monkey.retromusic.fragments.DetailListFragment"
|
||||
android:label="DetailListFragment">
|
||||
<argument
|
||||
android:name="type"
|
||||
app:argType="integer" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/searchFragment"
|
||||
android:name="code.name.monkey.retromusic.fragments.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" />
|
||||
<activity
|
||||
android:id="@+id/settingsActivity"
|
||||
android:name="code.name.monkey.retromusic.activities.SettingsActivity"
|
||||
android:label="SettingsActivity" />
|
||||
|
||||
|
||||
</navigation>
|
|
@ -69,7 +69,12 @@
|
|||
|
||||
<action
|
||||
android:id="@+id/action_mainSettingsFragment_to_aboutActivity"
|
||||
app:destination="@id/aboutActivity" />
|
||||
app:destination="@id/aboutActivity"
|
||||
app:enterAnim="@anim/retro_fragment_open_enter"
|
||||
app:exitAnim="@anim/retro_fragment_open_exit"
|
||||
app:launchSingleTop="true"
|
||||
app:popEnterAnim="@anim/retro_fragment_close_enter"
|
||||
app:popExitAnim="@anim/retro_fragment_close_exit" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue