415 lines
20 KiB
XML
415 lines
20 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
android:id="@+id/main"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:background="@color/white"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="80dp"
|
||
android:background="#202020"
|
||
android:layout_gravity="center"
|
||
android:orientation="horizontal">
|
||
<RelativeLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
<TextView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="match_parent"
|
||
android:text="@string/canteen_device_name"
|
||
android:gravity="center"
|
||
android:layout_marginStart="15dp"
|
||
android:textColor="@color/white"
|
||
android:textSize="35sp"/>
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:elevation="999dp"
|
||
android:orientation="vertical">
|
||
<TextView
|
||
android:id="@+id/time_show"
|
||
android:layout_width="320dp"
|
||
android:layout_height="match_parent"
|
||
android:textColor="@color/white"
|
||
android:gravity="center"
|
||
android:layout_gravity="center"
|
||
android:textFontWeight="800"
|
||
android:textSize="30sp"/>
|
||
<TextView
|
||
android:id="@+id/operation_more"
|
||
android:layout_width="90dp"
|
||
android:layout_height="match_parent"
|
||
android:textColor="@color/white"
|
||
android:text="更多"
|
||
android:visibility="gone"
|
||
android:gravity="center"
|
||
android:layout_gravity="end"
|
||
android:elevation="999dp"
|
||
android:textFontWeight="800"
|
||
android:textSize="30sp"/>
|
||
</FrameLayout>
|
||
</RelativeLayout>
|
||
</LinearLayout>
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
<androidx.constraintlayout.widget.ConstraintLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
app:layout_constraintBottom_toBottomOf="parent"
|
||
app:layout_constraintEnd_toEndOf="parent"
|
||
app:layout_constraintStart_toStartOf="parent"
|
||
app:layout_constraintTop_toTopOf="parent">
|
||
<FrameLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:elevation="999dp"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/keybroad_suspension"
|
||
android:layout_width="90dp"
|
||
android:layout_height="90dp"
|
||
android:layout_gravity="end|bottom"
|
||
android:layout_marginEnd="80dp"
|
||
android:layout_marginBottom="100dp"
|
||
android:background="@drawable/btn_keybroad_suspension"
|
||
android:drawableTop="@drawable/ic_keybroad"
|
||
android:drawablePadding="-8dp"
|
||
android:drawableTint="@color/white"
|
||
android:gravity="center"
|
||
android:padding="10dp"
|
||
android:text="键盘"
|
||
android:textColor="@color/white"
|
||
android:textFontWeight="1000"
|
||
android:textSize="18sp" />
|
||
|
||
</FrameLayout>
|
||
<!-- 定义引导线(左侧占33%,右侧占67%) -->
|
||
<androidx.constraintlayout.widget.Guideline
|
||
android:id="@+id/guideline"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:orientation="vertical"
|
||
app:layout_constraintGuide_begin="463dp" />
|
||
|
||
<!-- 左侧布局 -->
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
app:layout_constraintEnd_toStartOf="@+id/guideline"
|
||
app:layout_constraintStart_toStartOf="parent">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="6">
|
||
|
||
<include layout="@layout/canteen_food_sales_list" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="100dp"
|
||
android:layout_marginTop="10dp"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="30dp"
|
||
android:layout_marginTop="10dp"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="40dp"
|
||
android:layout_weight="1"
|
||
android:paddingStart="10dp">
|
||
|
||
<TextView
|
||
android:id="@+id/sales_number"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:text="总数量: 份"
|
||
android:textSize="20sp" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="40dp"
|
||
android:layout_weight="1"
|
||
android:paddingStart="10dp">
|
||
|
||
<TextView
|
||
android:id="@+id/sales_total_money"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:text="总金额: 元"
|
||
android:textSize="20sp" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="150dp"
|
||
android:orientation="horizontal">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="140dp"
|
||
android:layout_weight="1"
|
||
android:padding="10dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="100dp"
|
||
android:layout_gravity="center"
|
||
android:background="@drawable/btn_border_yellow_bg"
|
||
android:gravity="center"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/sales_discount_amount"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center"
|
||
android:textColor="@color/white"
|
||
android:textFontWeight="1000"
|
||
android:textSize="30sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="10dp"
|
||
android:gravity="center"
|
||
android:text="优惠金额"
|
||
android:textColor="@color/white"
|
||
android:textSize="20sp" />
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="140dp"
|
||
android:layout_weight="1"
|
||
android:padding="10dp">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="100dp"
|
||
android:layout_gravity="center"
|
||
android:background="@drawable/btn_border_orange_bg"
|
||
android:gravity="center"
|
||
android:orientation="vertical">
|
||
|
||
<TextView
|
||
android:id="@+id/sales_amount_due"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center"
|
||
android:textColor="@color/white"
|
||
android:textFontWeight="1000"
|
||
android:textSize="30sp" />
|
||
|
||
<TextView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginTop="10dp"
|
||
android:gravity="center"
|
||
android:text="应付金额"
|
||
android:textColor="@color/white"
|
||
android:textSize="20sp" />
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
<View
|
||
android:layout_width="0.5dp"
|
||
android:id="@+id/leftLine"
|
||
android:layout_height="match_parent"
|
||
android:background="#EDEDED"
|
||
app:layout_constraintStart_toStartOf="@+id/guideline"/>
|
||
|
||
<!-- 右侧布局 -->
|
||
<LinearLayout
|
||
android:id="@+id/right_page"
|
||
android:layout_width="0dp"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical"
|
||
app:layout_constraintEnd_toEndOf="parent"
|
||
app:layout_constraintStart_toStartOf="@+id/leftLine">
|
||
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="60dp"
|
||
android:baselineAligned="false"
|
||
android:gravity="center_vertical">
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:gravity="center_vertical"
|
||
android:layout_weight="1">
|
||
<Button
|
||
android:id="@+id/orderManagement"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="40dp"
|
||
android:layout_marginStart="5dp"
|
||
android:background="@drawable/btn_border_orange_bg"
|
||
android:text="@string/canteen_order_management" />
|
||
|
||
<Button
|
||
android:id="@+id/businessData"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="40dp"
|
||
android:layout_marginStart="10dp"
|
||
android:background="@drawable/btn_border_orange_bg"
|
||
android:text="@string/canteen_business_data" />
|
||
|
||
<Button
|
||
android:id="@+id/pickUpYourMeal"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="40dp"
|
||
android:layout_marginStart="10dp"
|
||
android:background="@drawable/btn_border_orange_bg"
|
||
android:visibility="gone"
|
||
android:text="@string/canteen_pick_up_your_meal" />
|
||
<Button
|
||
android:id="@+id/sales_refresh"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="40dp"
|
||
android:layout_marginStart="10dp"
|
||
android:background="@drawable/btn_border_orange_bg"
|
||
android:text="@string/canteen_refresh" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_weight="2"
|
||
android:gravity="center_vertical">
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="10dp"
|
||
android:layout_weight="1"
|
||
android:gravity="right">
|
||
</LinearLayout>
|
||
<LinearLayout
|
||
android:id="@+id/login_layout"
|
||
android:layout_weight="1"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginEnd="10dp"
|
||
android:gravity="right">
|
||
<ImageView
|
||
android:layout_width="35dp"
|
||
android:layout_height="35dp"
|
||
android:layout_gravity="center_vertical"
|
||
android:src="@drawable/ic_person_login"/>
|
||
<TextView
|
||
android:id="@+id/login_name"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginStart="10dp"
|
||
android:text="未登录"
|
||
android:layout_gravity="center"
|
||
android:textColor="@color/black"
|
||
android:textSize="20sp" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
<View
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0.5dp"
|
||
android:background="#EDEDED"
|
||
app:layout_constraintStart_toStartOf="@+id/guideline"/>
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content">
|
||
<LinearLayout
|
||
android:layout_width="0dp"
|
||
android:layout_height="match_parent"
|
||
android:layout_weight="1"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:id="@+id/menu_main"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:orientation="vertical">
|
||
|
||
<LinearLayout
|
||
android:id="@+id/refresh_main"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="50dp"
|
||
android:baselineAligned="false"
|
||
android:layout_weight="1"
|
||
android:orientation="horizontal">
|
||
|
||
<HorizontalScrollView
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:fillViewport="true">
|
||
|
||
<LinearLayout
|
||
android:id="@+id/menu_category"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="match_parent"
|
||
android:orientation="horizontal">
|
||
|
||
</LinearLayout>
|
||
</HorizontalScrollView>
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:id="@+id/menu_list"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="591dp"
|
||
android:layout_weight="10">
|
||
|
||
<include layout="@layout/canteen_ordering_menu" />
|
||
</LinearLayout>
|
||
|
||
<LinearLayout
|
||
android:id="@+id/btn_ok_out"
|
||
android:layout_width="match_parent"
|
||
android:visibility="gone"
|
||
android:layout_height="100dp"
|
||
android:paddingStart="50dp"
|
||
android:paddingEnd="50dp"
|
||
android:layout_weight="1.2"
|
||
android:gravity="center">
|
||
<Button
|
||
android:id="@+id/btn_ok_pay"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="50dp"
|
||
android:layout_gravity="center"
|
||
android:text="@string/canteen_ok"
|
||
android:background="@drawable/btn_border_orange_bg"/>
|
||
</LinearLayout>
|
||
|
||
</LinearLayout >
|
||
</LinearLayout>
|
||
<LinearLayout
|
||
android:id="@+id/keyboard_main"
|
||
android:layout_width="0dp"
|
||
android:layout_height="match_parent"
|
||
android:layout_weight="1">
|
||
<include layout="@layout/canteen_keybroad" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
</LinearLayout>
|
||
</LinearLayout> |