166 lines
6.3 KiB
XML
166 lines
6.3 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_settingsFragment"
|
|
app:destination="@id/settingsFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<action
|
|
android:id="@+id/action_homeFragment_to_canFragment"
|
|
app:destination="@id/canFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<action
|
|
android:id="@+id/action_homeFragment_to_userFragment"
|
|
app:destination="@id/userFragment" />
|
|
</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_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
<action
|
|
android:id="@+id/action_pinFragment_to_settingsFragment"
|
|
app:destination="@id/settingsFragment"
|
|
app:popUpTo="@id/settingsFragment"
|
|
app:popUpToInclusive="true" />
|
|
<argument
|
|
android:name="saving"
|
|
android:defaultValue="false"
|
|
app:argType="boolean" />
|
|
<action
|
|
android:id="@+id/action_pinFragment_to_authFragment"
|
|
app:destination="@id/authFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<argument
|
|
android:name="reading"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="auth"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="mobile"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
</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_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
<action
|
|
android:id="@+id/action_canFragment_to_settingsFragment"
|
|
app:destination="@id/settingsFragment"
|
|
app:popUpTo="@id/settingsFragment"
|
|
app:popUpToInclusive="true" />
|
|
<argument
|
|
android:name="saving"
|
|
android:defaultValue="false"
|
|
app:argType="boolean" />
|
|
<action
|
|
android:id="@+id/action_canFragment_to_pinFragment"
|
|
app:destination="@id/pinFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<argument
|
|
android:name="reading"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="auth"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="mobile"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
</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" />
|
|
<action
|
|
android:id="@+id/action_authFragment_to_resultFragment"
|
|
app:destination="@id/resultFragment"
|
|
app:popUpTo="@id/homeFragment" />
|
|
<argument
|
|
android:name="auth"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="reading"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
<argument
|
|
android:name="mobile"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
</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>
|
|
<fragment
|
|
android:id="@+id/settingsFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.menu.SettingsFragment"
|
|
android:label="fragment_settings"
|
|
tools:layout="@layout/fragment_settings">
|
|
<action
|
|
android:id="@+id/action_settingsFragment_to_canFragment"
|
|
app:destination="@id/canFragment" />
|
|
<action
|
|
android:id="@+id/action_settingsFragment_to_pinFragment"
|
|
app:destination="@id/pinFragment" />
|
|
<action
|
|
android:id="@+id/action_settingsFragment_to_homeFragment"
|
|
app:destination="@id/homeFragment"
|
|
app:popUpTo="@id/homeFragment"
|
|
app:popUpToInclusive="true" />
|
|
</fragment>
|
|
<fragment
|
|
android:id="@+id/resultFragment"
|
|
android:name="com.tarkvaraprojekt.mobileauthapp.ResultFragment"
|
|
android:label="fragment_result"
|
|
tools:layout="@layout/fragment_result" >
|
|
<argument
|
|
android:name="mobile"
|
|
app:argType="boolean"
|
|
android:defaultValue="false" />
|
|
</fragment>
|
|
</navigation> |