51 lines
1.8 KiB
XML
51 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/home_index_background"
|
|
android:fitsSystemWindows="false">
|
|
|
|
<!-- 状态栏背景由占位 View 绘制,高度由 ImmersionBar 设置,避免重复避让。 -->
|
|
|
|
<View
|
|
android:id="@+id/statusBarView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_alignParentTop="true"
|
|
android:background="@color/home_index_background" />
|
|
|
|
<!-- 四个业务入口等分宽度,系统导航栏留白由 ImmersionBar 统一处理。 -->
|
|
|
|
<FrameLayout
|
|
android:id="@+id/nav_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:background="@color/color_white">
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_gravity="top"
|
|
android:background="#DDDDDD"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<include
|
|
android:id="@+id/include_main_tabs"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="1dp"
|
|
layout="@layout/include_main_tabs" />
|
|
</FrameLayout>
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/nav_viewpage2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_above="@id/nav_view"
|
|
android:layout_below="@id/statusBarView"
|
|
android:visibility="visible" />
|
|
</RelativeLayout>
|