74 lines
2.9 KiB
XML
74 lines
2.9 KiB
XML
<?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"
|
|
app:startDestination="@id/homeFragment">
|
|
|
|
<fragment
|
|
android:id="@+id/homeFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.HomeFragment"
|
|
android:label="fragment_home"
|
|
tools:layout="@layout/fragment_home" >
|
|
<action
|
|
android:id="@+id/action_homeFragment_to_pinFragment"
|
|
app:destination="@id/pinFragment"
|
|
/>
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/pinFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.PinFragment"
|
|
android:label="fragment_pin"
|
|
tools:layout="@layout/fragment_pin" >
|
|
<action
|
|
android:id="@+id/action_pinFragment_to_canFragment"
|
|
app:destination="@id/canFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<action
|
|
android:id="@+id/action_pinFragment_to_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/canFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.CanFragment"
|
|
android:label="fragment_can"
|
|
tools:layout="@layout/fragment_can" >
|
|
<action
|
|
android:id="@+id/action_canFragment_to_authFragment"
|
|
app:destination="@id/authFragment"
|
|
app:popUpTo="@id/homeFragment"/>
|
|
<action
|
|
android:id="@+id/action_canFragment_to_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/authFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.AuthFragment"
|
|
android:label="fragment_auth"
|
|
tools:layout="@layout/fragment_auth" >
|
|
<action
|
|
android:id="@+id/action_authFragment_to_userFragment"
|
|
app:destination="@id/userFragment"
|
|
app:popUpTo="@id/homeFragment"/>
|
|
<action
|
|
android:id="@+id/action_authFragment_to_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/userFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.UserFragment"
|
|
android:label="fragment_user"
|
|
tools:layout="@layout/fragment_user" >
|
|
<action
|
|
android:id="@+id/action_userFragment_to_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true"/>
|
|
</fragment>
|
|
</navigation> |