餐品配比终端初始化
This commit is contained in:
@@ -0,0 +1,229 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#1E1E28"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp16"
|
||||
android:layout_marginBottom="@dimen/dp16"
|
||||
android:paddingLeft="@dimen/dp24"
|
||||
android:paddingRight="@dimen/dp24">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/restNameTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="餐品配比终端"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp18"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/tv_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:format12Hour="yyyy年MM月dd日 EEEE"
|
||||
android:format24Hour="yyyy年MM月dd日 EEEE"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp18"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="32dp"
|
||||
android:paddingRight="32dp"
|
||||
android:paddingBottom="32dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_small_concave"
|
||||
android:orientation="vertical"
|
||||
android:padding="22dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:background="@drawable/bg_convex"
|
||||
android:padding="26dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/setting_search_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_small_concave"
|
||||
android:cursorVisible="true"
|
||||
android:drawableLeft="@mipmap/icon_search"
|
||||
android:drawablePadding="@dimen/dp_4"
|
||||
android:hint="输入菜品名称"
|
||||
android:imeOptions="actionSearch"
|
||||
android:paddingLeft="8dp"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/themeBlackTextColor"
|
||||
android:textColorHint="@color/themeDarkTextColor"
|
||||
android:textCursorDrawable="@drawable/cursor"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/setting_search_edit_cancel_img"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="32dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="8dp"
|
||||
android:padding="@dimen/dp_4"
|
||||
android:src="@drawable/ic_baseline_cancel_24"
|
||||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<!-- <ScrollView-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:layout_marginTop="12dp"-->
|
||||
<!-- android:layout_weight="1">-->
|
||||
|
||||
<!-- <com.zhy.view.flowlayout.TagFlowLayout-->
|
||||
<!-- android:id="@+id/item_shopping_flowlayout"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="match_parent"-->
|
||||
<!-- android:layout_marginRight="24dp"-->
|
||||
<!-- app:max_select="1" />-->
|
||||
<!-- </ScrollView>-->
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/foodRecyclerView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#0000"
|
||||
android:overScrollMode="never"
|
||||
app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
|
||||
app:spanCount="2" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="32dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_small_concave"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.sw.st.view.TextDrawable
|
||||
android:id="@+id/zeroTitleTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:drawablePadding="12dp"
|
||||
android:text="当前展示菜品"
|
||||
android:textColor="@color/themeBlackTextColor"
|
||||
android:textSize="20sp"
|
||||
app:leftDrawable="@mipmap/icon_total_take_food"
|
||||
app:leftDrawableHeight="26dp"
|
||||
app:leftDrawableWidth="26dp" />
|
||||
|
||||
<com.sw.st.view.TextDrawable
|
||||
android:id="@+id/zeroTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:drawablePadding="4dp"
|
||||
android:gravity="center"
|
||||
android:padding="12dp"
|
||||
android:text="清零"
|
||||
android:textColor="@color/themeBlackTextColor"
|
||||
android:textSize="20sp"
|
||||
app:leftDrawable="@mipmap/icon_zero"
|
||||
app:leftDrawableHeight="26dp"
|
||||
app:leftDrawableWidth="26dp" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_convex"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/setting_current_food_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="50dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/themeDarkTextColor"
|
||||
android:textSize="32sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/currentWeight"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/themeBlackTextColor"
|
||||
android:textSize="88sp" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="38dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/back"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/new_ok_button"
|
||||
android:text="返回"
|
||||
android:textColor="@color/themeDarkTextColor"
|
||||
android:textSize="32sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/start"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="90dp"
|
||||
android:layout_marginLeft="22dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/new_ok_button"
|
||||
android:text="开餐"
|
||||
android:textColor="#2AC79F"
|
||||
android:textSize="32sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user