Skip to content

Instantly share code, notes, and snippets.

@sabiou
Created July 9, 2019 15:36
Show Gist options
  • Save sabiou/5bd12c08948a468751a08bc1b16873cb to your computer and use it in GitHub Desktop.
Save sabiou/5bd12c08948a468751a08bc1b16873cb to your computer and use it in GitHub Desktop.
<?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/navigation"
app:startDestination="@id/auth">
<fragment
android:id="@+id/chatsListFragment"
android:name="co.farouk.messaging.ChatsListFragment"
android:label="fragment_chats_list"
tools:layout="@layout/fragment_chats_list" >
<action
android:id="@+id/action_chatsListFragment_to_profileFragment"
app:destination="@id/profileFragment" />
<action
android:id="@+id/action_chatsListFragment_to_chatFragment"
app:destination="@id/chatFragment"
app:popUpToInclusive="false" />
</fragment>
<fragment
android:id="@+id/chatFragment"
android:name="co.farouk.messaging.ChatFragment"
android:label="fragment_chat"
tools:layout="@layout/fragment_chat" />
<fragment
android:id="@+id/profileFragment"
android:name="co.farouk.messaging.ProfileFragment"
android:label="fragment_profile"
tools:layout="@layout/fragment_profile" />
<navigation
android:id="@+id/auth"
app:startDestination="@id/splashFragment" >
<fragment
android:id="@+id/splashFragment"
android:name="co.farouk.SplashFragment"
android:label="fragment_splash"
tools:layout="@layout/fragment_splash">
<action
android:id="@+id/action_splashFragment_to_welcomeFragment"
app:destination="@id/welcomeFragment" />
</fragment>
<fragment
android:id="@+id/welcomeFragment"
android:name="co.farouk.WelcomeFragment"
android:label="fragment_welcome"
tools:layout="@layout/fragment_welcome">
<action
android:id="@+id/action_welcomeFragment_to_loginFragment"
app:destination="@id/loginFragment" />
<action
android:id="@+id/action_welcomeFragment_to_registrationFragment"
app:destination="@id/registrationFragment" />
</fragment>
<fragment
android:id="@+id/loginFragment"
android:name="co.farouk.auth.LoginFragment"
android:label="fragment_login"
tools:layout="@layout/fragment_login">
<action
android:id="@+id/action_loginFragment_to_registrationFragment"
app:destination="@id/registrationFragment" />
<action
android:id="@+id/action_loginFragment_to_forgotPasswordFragment"
app:destination="@id/forgotPasswordFragment" />
</fragment>
<fragment
android:id="@+id/forgotPasswordFragment"
android:name="co.farouk.auth.ForgotPasswordFragment"
android:label="fragment_forgot_password"
tools:layout="@layout/fragment_forgot_password">
<action
android:id="@+id/action_forgotPasswordFragment_to_fragmentResetPassword"
app:destination="@id/fragmentResetPassword" />
</fragment>
<fragment
android:id="@+id/fragmentResetPassword"
android:name="co.farouk.auth.FragmentResetPassword"
android:label="fragment_reset_password"
tools:layout="@layout/fragment_reset_password">
<action
android:id="@+id/action_fragmentResetPassword_to_forgotPasswordFragment"
app:destination="@id/forgotPasswordFragment" />
</fragment>
<fragment
android:id="@+id/finishAccountCreation"
android:name="co.farouk.auth.FinishAccountCreationFragment"
android:label="FinishAccountCreation"
tools:layout="@layout/fragment_finish_account_creation">
<action
android:id="@+id/action_finishAccountCreation_to_registrationFragment"
app:destination="@id/registrationFragment" />
</fragment>
<fragment
android:id="@+id/registrationFragment"
android:name="co.farouk.auth.RegistrationFragment"
android:label="fragment_registration"
tools:layout="@layout/fragment_registration">
<action
android:id="@+id/action_registrationFragment_to_loginFragment"
app:destination="@id/loginFragment" />
<action
android:id="@+id/action_registrationFragment_to_finishAccountCreation"
app:destination="@id/finishAccountCreation" />
</fragment>
<action
android:id="@+id/action_global_chatsListFragment"
app:destination="@id/chatsListFragment"
app:popUpToInclusive="true" />
</navigation>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment