Files
xqwatch/app/src/main/res/layout/fragment_home.xml
T

41 lines
1.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2026-04-28 19:53:04 +09:30
<!-- 首页容器:状态栏 + ViewPager2 + 下拉触摸层(上半屏) -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
2026-04-28 19:53:04 +09:30
android:background="@color/background">
2026-04-28 19:53:04 +09:30
<!-- 底层:状态栏 + ViewPager2 -->
<LinearLayout
android:layout_width="match_parent"
2026-04-28 19:53:04 +09:30
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingStart="21dp"
android:paddingTop="27dp"
android:paddingEnd="21dp">
2026-04-28 19:53:04 +09:30
<!-- 固定状态栏 -->
<com.xiaoqu.watch.ui.widget.StatusBarView
android:id="@+id/statusBar"
android:layout_width="match_parent"
android:layout_height="24dp"
2026-04-28 19:53:04 +09:30
android:layout_marginBottom="3dp" />
2026-04-28 19:53:04 +09:30
<!-- ViewPager2 -->
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
2026-04-28 19:53:04 +09:30
</LinearLayout>
<!-- 上层:下拉触摸区域(上半屏,透明,不拦截水平滑动) -->
<View
android:id="@+id/pullDownArea"
android:layout_width="match_parent"
2026-04-28 19:53:04 +09:30
android:layout_height="140dp"
android:layout_gravity="top" />
2026-04-28 19:53:04 +09:30
</FrameLayout>