Add backwards navigation from album to artist
Add a way for AlbumDetailFragment to return to ArtistDetailFragment.
This commit is contained in:
@@ -13,9 +13,12 @@
|
||||
android:id="@+id/action_to_main"
|
||||
app:destination="@id/main_fragment"
|
||||
app:enterAnim="@anim/fragment_fade_enter"
|
||||
app:exitAnim="@anim/fragment_open_exit"
|
||||
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:popUpToInclusive="true"
|
||||
app:launchSingleTop="true" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/main_fragment"
|
||||
@@ -24,11 +27,12 @@
|
||||
tools:layout="@layout/fragment_main">
|
||||
<action
|
||||
android:id="@+id/action_show_artist"
|
||||
app:destination="@id/artist_detail_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:popExitAnim="@anim/fragment_fade_exit"
|
||||
app:destination="@id/artist_detail_fragment"
|
||||
app:launchSingleTop="true" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/artist_detail_fragment"
|
||||
@@ -54,5 +58,12 @@
|
||||
<argument
|
||||
android:name="albumId"
|
||||
app:argType="long" />
|
||||
<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>
|
||||
</navigation>
|
||||
Reference in New Issue
Block a user