2024/5/5

<?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/my_nvc"
app:startDestination="@id/entryFragment">

<fragment
android:id="@+id/entryFragment"
android:name="com.example.personalwork.fragment.entry.EntryFragment"
android:label="fragment_entry"
tools:layout="@layout/fragment_entry" >
<action
android:id="@+id/action_entryFragment_to_loginFragment"
app:destination="@id/loginFragment" />
<action
android:id="@+id/action_entryFragment_to_registerFragment"
app:destination="@id/registerFragment" />
</fragment>

<fragment
android:id="@+id/loginFragment"
android:name="com.example.personalwork.fragment.login.LoginFragment"
android:label="fragment_login"
tools:layout="@layout/fragment_login" >
<action
android:id="@+id/action_loginFragment_to_entryFragment"
app:destination="@id/entryFragment" />
<action
android:id="@+id/action_loginFragment_to_studentListFragment"
app:destination="@id/studentListFragment" />
<action
android:id="@+id/action_loginFragment_to_teacherListFragment"
app:destination="@id/teacherListFragment" />
</fragment>
<fragment
android:id="@+id/registerFragment"
android:name="com.example.personalwork.fragment.register.RegisterFragment"
android:label="fragment_register"
tools:layout="@layout/fragment_register" >
<action
android:id="@+id/action_registerFragment_to_entryFragment"
app:destination="@id/entryFragment" />
<action
android:id="@+id/action_registerFragment_to_loginFragment"
app:destination="@id/loginFragment" />
</fragment>
<fragment
android:id="@+id/studentListFragment"
android:name="com.example.personalwork.fragment.list.studentListFragment"
android:label="fragment_student_list"
tools:layout="@layout/fragment_student_list" >
<action
android:id="@+id/action_studentListFragment_to_chatFragment"
app:destination="@id/chatFragment" />
<action
android:id="@+id/action_studentListFragment_to_contactFragment"
app:destination="@id/contactFragment" />
<action
android:id="@+id/action_studentListFragment_to_discoverFragment"
app:destination="@id/discoverFragment" />
</fragment>
<fragment
android:id="@+id/teacherListFragment"
android:name="com.example.personalwork.teacherListFragment"
android:label="fragment_teacher_list"
tools:layout="@layout/fragment_teacher_list" >
<action
android:id="@+id/action_teacherListFragment_to_oneFragment"
app:destination="@id/oneFragment" />
<action
android:id="@+id/action_teacherListFragment_to_twoFragment"
app:destination="@id/twoFragment" />
</fragment>
<fragment
android:id="@+id/chatFragment"
android:name="com.example.personalwork.fragment.bottom.ChatFragment"
android:label="fragment_chat"
tools:layout="@layout/fragment_chat" >
<action
android:id="@+id/action_chatFragment_to_add2Fragment"
app:destination="@id/add2Fragment" />
<action
android:id="@+id/action_chatFragment_to_upgrament2Fragment"
app:destination="@id/upgrament2Fragment" />
</fragment>
<fragment
android:id="@+id/contactFragment"
android:name="com.example.personalwork.fragment.bottom.ContactFragment"
android:label="fragment_contact"
tools:layout="@layout/fragment_contact" >
<action
android:id="@+id/action_contactFragment_to_addFragment"
app:destination="@id/addFragment" />
<action
android:id="@+id/action_contactFragment_to_updateFragment"
app:destination="@id/updateFragment" />
</fragment>
<fragment
android:id="@+id/discoverFragment"
android:name="com.example.personalwork.fragment.bottom.DiscoverFragment"
android:label="fragment_discover"
tools:layout="@layout/fragment_discover" />
<fragment
android:id="@+id/addFragment"
android:name="com.example.personalwork.fragment.bottom.function.add.AddFragment"
android:label="fragment_add"
tools:layout="@layout/fragment_add" >
<action
android:id="@+id/action_addFragment_to_contactFragment"
app:destination="@id/contactFragment" />
</fragment>
<fragment
android:id="@+id/updateFragment"
android:name="com.example.personalwork.fragment.bottom.function.update.UpdateFragment"
android:label="fragment_update"
tools:layout="@layout/fragment_update" >
<argument
android:name="currentItem"
app:argType="com.example.personalwork.data.models.DaySum" />
<action
android:id="@+id/action_updateFragment_to_contactFragment"
app:destination="@id/contactFragment" />
</fragment>
<fragment
android:id="@+id/add2Fragment"
android:name="com.example.personalwork.fragment.bottom.function.add.Add2Fragment"
android:label="fragment_add2"
tools:layout="@layout/fragment_add2" >
<action
android:id="@+id/action_add2Fragment_to_chatFragment"
app:destination="@id/chatFragment" />
</fragment>
<fragment
android:id="@+id/upgrament2Fragment"
android:name="com.example.personalwork.Upgrament2Fragment"
android:label="fragment_upgrament2"
tools:layout="@layout/fragment_upgrament2" >
<action
android:id="@+id/action_upgrament2Fragment_to_chatFragment"
app:destination="@id/chatFragment" />
</fragment>
<fragment
android:id="@+id/oneFragment"
android:name="com.example.personalwork.fragment.bottom.OneFragment"
android:label="fragment_one"
tools:layout="@layout/fragment_one" />
<fragment
android:id="@+id/twoFragment"
android:name="com.example.personalwork.fragment.bottom.TwoFragment"
android:label="fragment_two"
tools:layout="@layout/fragment_two" />

</navigation>
posted @ 2024-05-05 00:42  Hbro  阅读(7)  评论(0)    收藏  举报