145 lines
5.1 KiB
XML
145 lines
5.1 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:background="@drawable/bg_other_page"
|
|
tools:ignore="HardcodedText">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:background="@drawable/shape_white_30_corners"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="40dp"
|
|
android:text="@string/seasoning"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:textColor="@color/black666"
|
|
android:textSize="28sp" />
|
|
|
|
<include
|
|
android:id="@+id/include"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
layout="@layout/layout_grid"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:background="@drawable/shape_white_30_corners"
|
|
android:orientation="vertical"
|
|
android:paddingStart="30dp"
|
|
android:paddingEnd="30dp">
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:layout_width="120dp"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="30dp"
|
|
android:gravity="center"
|
|
android:text="熟重"
|
|
android:textColor="@color/black666"
|
|
android:textSize="28sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/btnWeightClear"
|
|
android:layout_width="120dp"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:background="@drawable/shape_green_stroke"
|
|
android:gravity="center"
|
|
android:text="清零"
|
|
android:textColor="@color/dish_green"
|
|
android:textSize="28sp" />
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvTotalWeight"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:includeFontPadding="false"
|
|
android:text="0.00"
|
|
android:textColor="@color/black"
|
|
android:textSize="90sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvWeightUnit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:includeFontPadding="false"
|
|
android:text="千克"
|
|
android:textColor="@color/black999"
|
|
android:textSize="32sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_marginTop="40dp"
|
|
android:layout_marginEnd="30dp"
|
|
android:layout_marginBottom="30dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/btnCook"
|
|
android:layout_width="0dp"
|
|
android:layout_height="90dp"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="制作"
|
|
android:background="@drawable/ripple_effect_light"
|
|
android:textColor="@color/dish_green"
|
|
android:textSize="32sp"
|
|
android:textStyle="bold" />
|
|
<!-- android:background="@drawable/shape_green_stroke"-->
|
|
|
|
<TextView
|
|
android:id="@+id/btnSubmit"
|
|
android:layout_width="0dp"
|
|
android:layout_height="90dp"
|
|
android:layout_marginStart="30dp"
|
|
android:layout_weight="1"
|
|
android:background="@drawable/ripple_effect_green"
|
|
android:gravity="center"
|
|
android:text="提交"
|
|
android:textColor="@color/white"
|
|
android:textSize="32sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|