Files
PowerBell/stallhelper/src/main/res/layout/activity_main.xml
T
Transformers 510f50458b feat: 添加任务排档功能
- 新增 TaskSchedulerActivity 任务排档页面
- 新增 ic_task_scheduler 任务排档专用图标
- 新增 activity_task_scheduler 任务排档布局文件
- 在主界面添加任务排档入口按钮
- 在 AndroidManifest.xml 中注册新 Activity
- 在 MainActivity 中添加跳转逻辑
2026-05-18 02:56:14 +08:00

120 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/activityBackgroundColor">
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/toolbarBackgroundColor"
android:id="@+id/toolbar"/>
<LinearLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/bg_frame"
android:onClick="onPreNullDiningTable">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@color/colorPreNullBackgroung"
android:src="@drawable/diningtable"
android:layout_margin="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="餐桌空白预定表制作"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/bg_frame"
android:onClick="onCompleteDiningTable">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@color/colorCompleteBackgroung"
android:src="@drawable/diningtable"
android:layout_margin="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订餐列表补全"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/bg_frame"
android:onClick="onNoteRecordHelper">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@color/colorCompleteBackgroung"
android:src="@drawable/ic_noterecordhelper"
android:layout_margin="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单笔录辅助"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:background="@drawable/bg_frame"
android:onClick="onTaskScheduler">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@color/colorPreNullBackgroung"
android:src="@drawable/ic_task_scheduler"
android:layout_margin="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="任务排档"
android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>