This commit is contained in:
pengxiaolong
2025-12-31 18:36:55 +08:00
parent 70e727fdb7
commit c1a80dd4cf
51 changed files with 2560 additions and 1159 deletions

View File

@@ -7,16 +7,27 @@
android:layout_height="match_parent"
tools:context=".MainActivity">
<!-- 页面内容区域:用于切换 Fragment -->
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
<FrameLayout
android:id="@+id/root_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:navGraph="@navigation/nav_graph"
app:defaultNavHost="true" />
android:layout_height="match_parent">
<!-- 3个Tab NavHost 都 add 到这里 -->
<androidx.fragment.app.FragmentContainerView
android:id="@+id/tab_container"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<!-- 全局页面覆盖层login/recharge等 -->
<androidx.fragment.app.FragmentContainerView
android:id="@+id/global_container"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</FrameLayout>
<!-- 底部导航栏 -->
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
@@ -27,4 +38,4 @@
app:itemIconTint="@null"
app:itemTextColor="@color/nav_text_color"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>