fix: 下拉手势改为在状态栏区域检测(避免ViewPager2拦截)

状态栏区域扩大为40dp触摸区,在此区域检测下拉手势进入考勤页

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-04-28 18:38:17 +09:30
parent c812b9ee1a
commit 2d5726db9a
2 changed files with 21 additions and 12 deletions

View File

@@ -9,12 +9,20 @@
android:paddingTop="27dp"
android:paddingEnd="21dp">
<!-- 固定状态栏(不随 ViewPager2 滑动) -->
<com.xiaoqu.watch.ui.widget.StatusBarView
android:id="@+id/statusBar"
<!-- 固定状态栏(不随 ViewPager2 滑动)+ 下拉触摸区域 -->
<FrameLayout
android:id="@+id/pullDownArea"
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_marginBottom="3dp" />
android:layout_height="40dp"
android:layout_marginBottom="3dp">
<com.xiaoqu.watch.ui.widget.StatusBarView
android:id="@+id/statusBar"
android:layout_width="match_parent"
android:layout_height="24dp"
android:layout_gravity="center_vertical" />
</FrameLayout>
<!-- ViewPager2 在状态栏下方滑动 -->
<androidx.viewpager2.widget.ViewPager2