| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?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_graph.xml"
- app:startDestination="@id/splashFragment">
- <fragment
- android:id="@+id/splashFragment"
- android:name="com.mrozon.feature_splash.presentation.SplashFragment"
- android:label="SplashFragment"
- tools:layout="@layout/fragment_splash" >
- <action
- android:id="@+id/action_splashFragment_to_loginFragment"
- app:destination="@id/loginFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:launchSingleTop="true"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right" />
- <action
- android:id="@+id/action_splashFragment_to_listPersonFragment"
- app:destination="@id/listPersonFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:launchSingleTop="true"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"
- app:popUpTo="@id/listPersonFragment"
- app:popUpToInclusive="true" />
- </fragment>
- <fragment
- android:id="@+id/loginFragment"
- android:name="com.mrozon.feature_auth.presentation.LoginFragment"
- tools:layout="@layout/fragment_login"
- android:label="LoginFragment" >
- <action
- android:id="@+id/action_loginFragment_to_registrationFragment"
- app:destination="@id/registrationFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"/>
- <action
- android:id="@+id/action_loginFragment_to_listPersonFragment"
- app:destination="@id/listPersonFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"
- app:popUpTo="@id/listPersonFragment"
- app:popUpToInclusive="true" />
- </fragment>
- <fragment
- android:id="@+id/registrationFragment"
- tools:layout="@layout/fragment_registration"
- android:name="com.mrozon.feature_auth.presentation.RegistrationFragment"
- android:label="RegistrationFragment" >
- <action
- android:id="@+id/action_registrationFragment_to_loginFragment"
- app:destination="@id/loginFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"/>
- </fragment>
- <action android:id="@+id/action_global_loginFragment"
- app:destination="@id/loginFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"/>
- <fragment
- android:id="@+id/listPersonFragment"
- android:name="com.mrozon.feature_person.presentation.ListPersonFragment"
- android:label="@string/list_persons"
- tools:layout="@layout/fragment_list_person">
- <action
- android:id="@+id/action_listPersonFragment_to_editPersonFragment"
- app:destination="@id/editPersonFragment"
- app:enterAnim="@anim/slide_in_right"
- app:exitAnim="@anim/slide_out_left"
- app:popEnterAnim="@anim/slide_in_left"
- app:popExitAnim="@anim/slide_out_right"/>
- </fragment>
- <fragment
- android:id="@+id/editPersonFragment"
- android:name="com.mrozon.feature_person.presentation.EditPersonFragment"
- tools:layout="@layout/fragment_edit_person"
- android:label="{title}" >
- <argument
- android:name="title"
- app:argType="string" />
- <argument
- android:name="id"
- app:argType="long" />
- <action
- android:id="@+id/action_editPersonFragment_to_listPersonFragment"
- app:destination="@id/listPersonFragment" />
- </fragment>
- </navigation>
|