2026-04-27 11:26:50 +09:30
|
|
|
|
<?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"
|
|
|
|
|
|
android:id="@+id/nav_main"
|
2026-04-27 16:23:37 +09:30
|
|
|
|
app:startDestination="@id/splashFragment">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 启动分发页(检查绑定状态 → Home 或 Bind) -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/splashFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.common.SplashFragment"
|
|
|
|
|
|
android:label="启动">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- splash → home(已绑定) -->
|
|
|
|
|
|
<action
|
|
|
|
|
|
android:id="@+id/action_splash_to_home"
|
|
|
|
|
|
app:destination="@id/homeFragment"
|
|
|
|
|
|
app:popUpTo="@id/splashFragment"
|
|
|
|
|
|
app:popUpToInclusive="true" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- splash → bind(未绑定) -->
|
|
|
|
|
|
<action
|
|
|
|
|
|
android:id="@+id/action_splash_to_bind"
|
|
|
|
|
|
app:destination="@id/bindFragment"
|
|
|
|
|
|
app:popUpTo="@id/splashFragment"
|
|
|
|
|
|
app:popUpToInclusive="true" />
|
|
|
|
|
|
</fragment>
|
2026-04-27 11:26:50 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 首页(含 ViewPager2 左右滑动:设置页 / 主页) -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/homeFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.home.HomeFragment"
|
2026-04-27 16:23:37 +09:30
|
|
|
|
android:label="首页">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- home → bind(解绑后) -->
|
|
|
|
|
|
<action
|
|
|
|
|
|
android:id="@+id/action_home_to_bind"
|
|
|
|
|
|
app:destination="@id/bindFragment"
|
|
|
|
|
|
app:popUpTo="@id/homeFragment"
|
|
|
|
|
|
app:popUpToInclusive="true" />
|
|
|
|
|
|
</fragment>
|
2026-04-27 11:26:50 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 设备绑定页(全屏二维码) -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/bindFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.bind.BindFragment"
|
2026-04-27 16:23:37 +09:30
|
|
|
|
android:label="设备绑定">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- bind → home(绑定成功后) -->
|
|
|
|
|
|
<action
|
|
|
|
|
|
android:id="@+id/action_bind_to_home"
|
|
|
|
|
|
app:destination="@id/homeFragment"
|
|
|
|
|
|
app:popUpTo="@id/bindFragment"
|
|
|
|
|
|
app:popUpToInclusive="true" />
|
|
|
|
|
|
</fragment>
|
2026-04-27 11:26:50 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 任务列表 -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/taskListFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.task.TaskListFragment"
|
|
|
|
|
|
android:label="任务列表" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 任务详情 -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/taskDetailFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.task.TaskDetailFragment"
|
|
|
|
|
|
android:label="任务详情" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 打卡页 -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/punchFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.punch.PunchFragment"
|
|
|
|
|
|
android:label="打卡" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 设备信息 -->
|
|
|
|
|
|
<fragment
|
|
|
|
|
|
android:id="@+id/infoFragment"
|
|
|
|
|
|
android:name="com.xiaoqu.watch.ui.info.InfoFragment"
|
|
|
|
|
|
android:label="设备信息" />
|
|
|
|
|
|
|
|
|
|
|
|
</navigation>
|