From 1097c45d8d6aa4b74a50e8d9a99dedab73f2bbad Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期五, 28 二月 2025 13:35:07 +0800 Subject: [PATCH] add: 优化首页自动同步历史短信,和实时刷新包裹列表 --- app/src/main/res/navigation/mobile_navigation.xml | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/app/src/main/res/navigation/mobile_navigation.xml b/app/src/main/res/navigation/mobile_navigation.xml index 293c825..fcb8587 100644 --- a/app/src/main/res/navigation/mobile_navigation.xml +++ b/app/src/main/res/navigation/mobile_navigation.xml @@ -31,11 +31,54 @@ app:exitAnim="@anim/nav_default_exit_anim" app:popEnterAnim="@anim/nav_default_pop_enter_anim" app:popExitAnim="@anim/nav_default_pop_exit_anim" /> + + <!-- 新增的action,跳转到 ReminderSettingsFragmentOther --> + <action + android:id="@+id/action_settings_to_reminderSettingsFragmentOther" + app:destination="@id/reminderSettingsFragmentOther" + app:enterAnim="@anim/nav_default_enter_anim" + app:exitAnim="@anim/nav_default_exit_anim" + app:popEnterAnim="@anim/nav_default_pop_enter_anim" + app:popExitAnim="@anim/nav_default_pop_exit_anim" /> + </fragment> +<!-- <fragment--> +<!-- android:id="@+id/reminderSettingsFragment"--> +<!-- android:name="com.example.firstapp.ui.reminder.ReminderSettingsFragment"--> +<!-- android:label="设置提醒"--> +<!-- tools:layout="@layout/fragment_reminder_settings" />--> <fragment android:id="@+id/reminderSettingsFragment" android:name="com.example.firstapp.ui.reminder.ReminderSettingsFragment" android:label="设置提醒" - tools:layout="@layout/fragment_reminder_settings" /> + tools:layout="@layout/fragment_reminder_settings"> + + <!-- 可以添加 popUpTo 属性来指定返回时的目标 --> + <action + android:id="@+id/action_reminderSettings_to_notifications" + app:popUpTo="@id/navigation_notifications" + app:enterAnim="@anim/nav_default_enter_anim" + app:exitAnim="@anim/nav_default_exit_anim" + app:popEnterAnim="@anim/nav_default_pop_enter_anim" + app:popExitAnim="@anim/nav_default_pop_exit_anim" /> + </fragment> + + + <fragment + android:id="@+id/reminderSettingsFragmentOther" + android:name="com.example.firstapp.ui.reminderOther.ReminderSettingsFragmentOther" + android:label="设置其他提醒" + tools:layout="@layout/fragment_reminder_settings_fragment_other" > + + <action + android:id="@+id/action_reminderSettingsFragmentOther_to_reminderSettingsFragmentOtherAdd" + app:destination="@id/reminderSettingsFragmentOtherAdd" /> + </fragment> + + <fragment + android:id="@+id/reminderSettingsFragmentOtherAdd" + android:name="com.example.firstapp.ui.reminderOther.ReminderSettingsFragmentOtherAdd" + android:label="新增" /> + </navigation> \ No newline at end of file -- Gitblit v1.9.3