|
<?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/bottom_sheet_navigation_controller" |
|
app:startDestination="@id/fragmentA"> |
|
|
|
<!-- |
|
Replace Fragment A with Fragment B |
|
B runs enter animation |
|
A runs exit animation |
|
on back press |
|
B runs popExit |
|
A runs popEnter |
|
--> |
|
|
|
<fragment |
|
android:id="@+id/fragmentA" |
|
android:name="net.kibotu.screens.map.FragmentA" |
|
android:label="FragmentA"> |
|
|
|
<action |
|
android:id="@+id/action_fragmentA_to_fragmentB" |
|
app:destination="@id/fragmentB" |
|
app:enterAnim="@anim/slide_in_up" |
|
app:exitAnim="@anim/slide_in_down" |
|
app:popEnterAnim="@anim/slide_in_up" |
|
app:popExitAnim="@anim/slide_in_down" /> |
|
|
|
</fragment> |
|
|
|
<fragment |
|
android:id="@+id/fragmentB" |
|
android:name="net.kibotu.screens.map.FragmentB" |
|
android:label="FragmentB"> |
|
|
|
<action |
|
android:id="@+id/action_fragmentB_to_fragmentA" |
|
app:destination="@id/fragmentA" |
|
app:enterAnim="@anim/slide_in_up" |
|
app:exitAnim="@anim/slide_in_down" |
|
app:popEnterAnim="@anim/slide_in_up" |
|
app:popExitAnim="@anim/slide_in_down" /> |
|
|
|
</fragment> |
|
|
|
</navigation> |