|
@@ -2,31 +2,118 @@
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@mipmap/order_bg"
|
|
|
android:orientation="horizontal">
|
|
android:orientation="horizontal">
|
|
|
- <RelativeLayout
|
|
|
|
|
- android:alpha="70"
|
|
|
|
|
- android:layout_width="880dp"
|
|
|
|
|
- android:layout_height="576dp"
|
|
|
|
|
- android:background="@mipmap/bg_masking"
|
|
|
|
|
- android:layout_marginLeft="50dp"
|
|
|
|
|
- android:layout_marginBottom="20dp">
|
|
|
|
|
-
|
|
|
|
|
- <ImageView
|
|
|
|
|
- android:id="@+id/iv_order"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:src="@mipmap/order_icon"
|
|
|
|
|
- android:layout_centerInParent="true"
|
|
|
|
|
- />
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:layout_centerInParent="true"
|
|
|
|
|
- android:layout_below="@+id/iv_order"
|
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:padding="20dp"
|
|
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
|
|
+ android:id="@+id/ll_top"
|
|
|
|
|
+ >
|
|
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/iv_logo_main"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:src="@mipmap/logo">
|
|
|
|
|
+ </ImageView>
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+
|
|
|
|
|
+ android:id="@+id/ll_main_date"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:textColor="@color/white"
|
|
|
|
|
- android:textSize="24sp"
|
|
|
|
|
- android:layout_marginTop="10dp"
|
|
|
|
|
- android:text="点餐"
|
|
|
|
|
- />
|
|
|
|
|
- </RelativeLayout>
|
|
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ android:paddingRight="20dp"
|
|
|
|
|
+ android:paddingLeft="20dp"
|
|
|
|
|
+ android:paddingBottom="10dp"
|
|
|
|
|
+ android:layout_gravity="center"
|
|
|
|
|
+ android:gravity="right">
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:textSize="48sp"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:textColor="#fff"
|
|
|
|
|
+ android:id="@+id/tv_main_time"
|
|
|
|
|
+ android:text="18:58"/>
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:textSize="16sp"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:textColor="#fff"
|
|
|
|
|
+ android:id="@+id/tv_main_week"
|
|
|
|
|
+ android:text="11月25日 周三"/>
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_below="@+id/ll_top"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@color/white"
|
|
|
|
|
+ android:layout_marginBottom="90dp"
|
|
|
|
|
+ >
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="90dp"
|
|
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:gravity="left"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:layout_weight="0.5">
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
|
+ android:src="@mipmap/shopping_cart">
|
|
|
|
|
+ </ImageView>
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:text="合计:¥3000"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ />
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:background="@mipmap/bt_bg_red"
|
|
|
|
|
+ android:text="确认"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_weight="0.5"
|
|
|
|
|
+ android:gravity="right"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
+ <Button
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:text="我的订单"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:background="@mipmap/bt_white_bg"
|
|
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
|
|
+ />
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
|
|
+ android:src="@mipmap/back_up">
|
|
|
|
|
+ </ImageView>
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|