Files
digital-attendance-admin-app/app/src/main/res/navigation/mobile_navigation.xml

96 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- mobile_navigation.xml -->
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/mobile_navigation"
app:startDestination="@+id/navigation_login">
<fragment
android:id="@+id/navigation_login"
android:name="in.sminnovations.smiadmin.ui.fragments.LoginFragment"
android:label="Login">
<action
android:id="@+id/action_login_to_home"
app:destination="@id/navigation_home"
app:popUpTo="@id/navigation_login"
app:popUpToInclusive="true" />
</fragment>
<fragment
android:id="@+id/navigation_home"
android:name="in.sminnovations.smiadmin.ui.fragments.HomeFragment"
android:label="Home">
<action
android:id="@+id/action_home_to_employee_list"
app:destination="@id/navigation_employee_list" />
<action
android:id="@+id/action_home_to_employee_attendance_list"
app:destination="@id/navigation_employee_attendance_list" />
<action
android:id="@+id/action_home_to_add_employee"
app:destination="@id/navigation_add_employee" />
<action
android:id="@+id/action_to_employeeQrFragment"
app:destination="@id/navigation_employee_qr" />
</fragment>
<fragment
android:id="@+id/navigation_settings"
android:name="in.sminnovations.smiadmin.ui.fragments.SettingsFragment"
android:label="Settings">
<action
android:id="@+id/action_settings_to_login"
app:destination="@id/navigation_login"
app:popUpTo="@id/mobile_navigation"
app:popUpToInclusive="true" />
</fragment>
<fragment
android:id="@+id/navigation_employee_list"
android:name="in.sminnovations.smiadmin.ui.fragments.attendance.EmployeeListFragment"
android:label="Employee List" />
<fragment
android:id="@+id/navigation_employee_attendance_list"
android:name="in.sminnovations.smiadmin.ui.fragments.attendance.EmployeeAttendanceListFragment"
android:label="Employee List">
<action
android:id="@+id/action_employee_list_to_attendance_detail"
app:destination="@id/navigation_attendance_detail" />
</fragment>
<fragment
android:id="@+id/navigation_add_employee"
android:name="in.sminnovations.smiadmin.ui.fragments.AddEmployeeFragment"
android:label="Add Employee">
<action
android:id="@+id/action_add_employee_to_home"
app:destination="@id/navigation_home"
app:popUpTo="@id/navigation_home"
app:popUpToInclusive="false" />
</fragment>
<fragment
android:id="@+id/navigation_employee_qr"
android:name="in.sminnovations.smiadmin.ui.fragments.ShareQrFragment"
android:label="Employee Qr">
<action
android:id="@+id/action_employee_qr_to_home"
app:destination="@id/navigation_home"
app:popUpTo="@id/navigation_home"
app:popUpToInclusive="false" />
</fragment>
<fragment
android:id="@+id/navigation_attendance_detail"
android:name="in.sminnovations.smiadmin.ui.fragments.attendance.AttendanceDetailFragment"
android:label="Attendance Detail">
<argument
android:name="employeeId"
app:argType="string" />
<argument
android:name="employeeName"
app:argType="string" />
</fragment>
</navigation>