Files
hpos/app/src/main/res/navigation/dashboard_navigation.xml

56 lines
2.2 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/mobile_navigation"
app:startDestination="@+id/loginFragment">
<fragment
android:id="@+id/nav_home"
android:name="com.example.hpostesting.presentation.dashboard.HomeFragment"
android:label="@string/menu_home"
app:popUpToInclusive="true"
app:popUpTo="@id/nav_home"
tools:layout="@layout/fragment_home" >
<action
android:id="@+id/action_nav_home_to_mainActivity"
app:destination="@id/mainActivity" />
<action
android:id="@+id/action_nav_home_to_loginFragment"
app:destination="@id/loginFragment"
app:popUpToInclusive="true"/>
</fragment>
<fragment
android:id="@+id/nav_profile"
android:name="com.example.hpostesting.presentation.dashboard.GalleryFragment"
android:label="@string/profile"
tools:layout="@layout/fragment_gallery" />
<fragment
android:id="@+id/nav_settings"
android:name="com.example.hpostesting.presentation.dashboard.SlideshowFragment"
android:label="@string/action_settings"
tools:layout="@layout/fragment_slideshow" />
<fragment
android:id="@+id/nav_activity"
android:name="com.example.hpostesting.presentation.dashboard.ActivitiesFragment"
android:label="@string/action_activity"
tools:layout="@layout/fragment_activities" />
<activity
android:id="@+id/mainActivity"
android:name="com.example.hpostesting.presentation.MainActivity"
android:label="MainActivity" />
<fragment
android:id="@+id/loginFragment"
android:name="com.example.hpostesting.presentation.dashboard.ui.LoginFragment"
android:label="fragment_login"
tools:layout="@layout/fragment_login" >
<action
android:id="@+id/action_loginFragment_to_homeFragment"
app:destination="@id/nav_home"
app:popUpTo="@id/mobile_navigation"
app:popUpToInclusive="true"/>
</fragment>
</navigation>