feat: 添加设置页面到底部导航

之前问题:设置页面虽然已实现,但没有添加到底部导航栏,用户无法访问

解决方案:
1. 在底部导航菜单添加"设置"选项(第5个标签)
2. 更新 ViewPagerAdapter 支持 5 个页面(NUM_PAGES: 4 → 5)
3. 在 case 4 添加 SettingsFragment
4. 更新 MainActivity.switchToPage() 方法注释和范围检查(4 → 5)

底部导航顺序:
- 主页 (nav_home)
- 壁纸 (nav_wallpaper)
- 相册 (nav_albums)
- 历史 (nav_history)
- 设置 (nav_settings) ✨ 新增

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Sonnet 4.5 committed 2026-01-25 15:05:41 +08:00
1 parent fd96f2c1a2
commit 5026020423
3 files changed
+12 -5

No files matched your search

@@ -23,4 +23,10 @@
android:icon="@drawable/ic_history"
android:title="@string/nav_history"
android:orderInCategory="3" />
<item
android:id="@+id/nav_settings"
android:icon="@drawable/ic_settings"
android:title="@string/nav_settings"
android:orderInCategory="4" />
</menu>