fix: 返回按钮改为整个标题栏左半边可点击
去掉 TouchDelegate,改用 FrameLayout 占标题栏左半边(weight=1) 图标靠左显示,但整个左半边 48dp 高的区域都能触发返回 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,16 +19,25 @@
|
||||
android:paddingEnd="21dp"
|
||||
android:paddingBottom="4dp">
|
||||
|
||||
<!-- 返回按钮:iconfont 图标,点击区域由 TouchDelegate 扩展 -->
|
||||
<TextView
|
||||
<!-- 返回按钮:整个左半边可点击,图标靠左 -->
|
||||
<FrameLayout
|
||||
android:id="@+id/btnBack"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:text="\ue6bd"
|
||||
android:fontFamily="@font/iconfont"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="28sp" />
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:clickable="true"
|
||||
android:focusable="true">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingStart="21dp"
|
||||
android:text="\ue6bd"
|
||||
android:fontFamily="@font/iconfont"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="28sp" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTitle"
|
||||
|
||||
Reference in New Issue
Block a user