Files
SmartPlateCabinet/app/src/main/res/layout/item_title_time.xml
T
mazengfei 97e5d74c4b 吐盘机: 避免相机关闭后预览画面残留
- 将双击判定窗口时间由300ms延长至600ms,提升触摸屏操作体验
- 为标题时间布局的左右TextView添加最小高度和内边距,优化显示效果
- 相机关闭时清空预览画面,防止TextureView冻结并残留上一用户画面
- 重启相机前先清空残留帧,避免闪现上一用户画面
2026-08-19 17:03:52 +08:00

51 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="100dp"
android:paddingHorizontal="65dp"
tools:ignore="HardcodedText,ContentDescription,UseCompoundDrawables">
<LinearLayout
android:id="@+id/tvLeftDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="64dp"
android:gravity="center_vertical"
android:paddingHorizontal="12dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<ImageView
android:layout_width="48dp"
android:layout_height="48dp"
android:src="@drawable/logo_launcher" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginStart="25dp"
android:textColor="#FFF0C8B4"
android:textSize="30sp"
android:text="欢迎光临数味餐厅" />
</LinearLayout>
<TextView
android:id="@+id/tvRightTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="64dp"
android:paddingHorizontal="12dp"
android:textColor="#FFF0C8B4"
android:textSize="24sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/tvLeftDate"
app:layout_constraintBottom_toBottomOf="@id/tvLeftDate"
tools:text="2026年03月27日 星期五 12:08" />
</androidx.constraintlayout.widget.ConstraintLayout>