Commit d1e3b347 by wjg

重做menu UI

parent 08dd6726
...@@ -8,26 +8,27 @@ ...@@ -8,26 +8,27 @@
android:id="@+id/img_left" android:id="@+id/img_left"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1.3" android:layout_weight="0.5625"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:scaleType="centerCrop" /> android:scaleType="centerCrop" />
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="0.4375"
android:orientation="vertical"> android:orientation="vertical">
<RelativeLayout <RelativeLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="0.5"
android:background="@color/colorPrimary" android:background="@color/colorPrimary"
android:orientation="vertical" android:orientation="vertical"
android:padding="@dimen/padding20"> android:paddingHorizontal="@dimen/menu_content_padding_hor"
android:paddingTop="@dimen/menu_content_padding_top"
android:paddingBottom="@dimen/menu_content_padding_bottom">
<TextView <TextView
android:id="@+id/txt_title" android:id="@+id/txt_title"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_margin="@dimen/padding10"
android:text="自主取餐" android:text="自主取餐"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/ts_menu_title" /> android:textSize="@dimen/ts_menu_title" />
...@@ -35,7 +36,7 @@ ...@@ -35,7 +36,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/txt_title" android:layout_below="@+id/txt_title"
android:layout_margin="@dimen/padding10" android:layout_marginTop="@dimen/menu_order_margin_top"
android:orientation="horizontal"> android:orientation="horizontal">
<RelativeLayout <RelativeLayout
android:layout_width="0dp" android:layout_width="0dp"
...@@ -53,15 +54,17 @@ ...@@ -53,15 +54,17 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/txt_cooking" android:layout_below="@+id/txt_cooking"
android:numColumns="2" /> android:horizontalSpacing="@dimen/menu_spacing_hor"
android:numColumns="2"
android:scrollbars="none"
android:verticalSpacing="@dimen/menu_spacing_ver" />
</RelativeLayout> </RelativeLayout>
<ImageView <ImageView
android:layout_width="0.5dp" android:layout_width="1px"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginStart="@dimen/menu_divider_padding_hor" android:layout_marginHorizontal="@dimen/menu_divider_padding_hor"
android:layout_marginTop="@dimen/menu_divider_padding_ver" android:layout_marginTop="@dimen/menu_divider_padding_top"
android:layout_marginEnd="@dimen/menu_divider_padding_hor" android:layout_marginBottom="@dimen/menu_divider_padding_bottom"
android:layout_marginBottom="@dimen/menu_divider_padding_ver"
android:background="@color/white" android:background="@color/white"
tools:ignore="Suspicious0dp" /> tools:ignore="Suspicious0dp" />
<RelativeLayout <RelativeLayout
...@@ -80,15 +83,17 @@ ...@@ -80,15 +83,17 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/txt_waiting" android:layout_below="@+id/txt_waiting"
android:numColumns="2" /> android:horizontalSpacing="@dimen/menu_spacing_hor"
android:numColumns="2"
android:scrollbars="none"
android:verticalSpacing="@dimen/menu_spacing_ver" />
</RelativeLayout> </RelativeLayout>
<ImageView <ImageView
android:layout_width="0.5dp" android:layout_width="1px"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginStart="@dimen/menu_divider_padding_hor" android:layout_marginHorizontal="@dimen/menu_divider_padding_hor"
android:layout_marginTop="@dimen/menu_divider_padding_ver" android:layout_marginTop="@dimen/menu_divider_padding_top"
android:layout_marginEnd="@dimen/menu_divider_padding_hor" android:layout_marginBottom="@dimen/menu_divider_padding_bottom"
android:layout_marginBottom="@dimen/menu_divider_padding_ver"
android:background="@color/white" android:background="@color/white"
tools:ignore="Suspicious0dp" /> tools:ignore="Suspicious0dp" />
<RelativeLayout <RelativeLayout
...@@ -99,15 +104,27 @@ ...@@ -99,15 +104,27 @@
android:id="@+id/txt_competed" android:id="@+id/txt_competed"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="可取餐(扫码取餐)" android:text="可取餐"
android:textColor="@color/white" android:textColor="@color/white"
android:textSize="@dimen/ts_menu_subtitle" /> android:textSize="@dimen/ts_menu_subtitle" />
<TextView
android:id="@+id/txt_competed1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/txt_competed"
android:layout_toRightOf="@id/txt_competed"
android:text="(扫码取餐)"
android:textColor="@color/white"
android:textSize="@dimen/ts_menu_subtitle1" />
<GridView <GridView
android:id="@+id/grid_completed" android:id="@+id/grid_completed"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_below="@+id/txt_competed" android:layout_below="@+id/txt_competed"
android:numColumns="2" /> android:horizontalSpacing="@dimen/menu_spacing_hor"
android:numColumns="2"
android:scrollbars="none"
android:verticalSpacing="@dimen/menu_spacing_ver" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
</RelativeLayout> </RelativeLayout>
...@@ -115,7 +132,7 @@ ...@@ -115,7 +132,7 @@
android:id="@+id/img_right" android:id="@+id/img_right"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1.3" android:layout_weight="0.5"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:scaleType="centerCrop" /> android:scaleType="centerCrop" />
</LinearLayout> </LinearLayout>
......
...@@ -34,8 +34,15 @@ ...@@ -34,8 +34,15 @@
<dimen name="tip_margin_top">40px</dimen> <dimen name="tip_margin_top">40px</dimen>
<dimen name="tip_padding_top">33px</dimen> <dimen name="tip_padding_top">33px</dimen>
<dimen name="tip_padding_bottom">33px</dimen> <dimen name="tip_padding_bottom">33px</dimen>
<dimen name="menu_divider_padding_hor">20dp</dimen> <dimen name="menu_divider_padding_hor">33px</dimen>
<dimen name="menu_divider_padding_ver">80dp</dimen> <dimen name="menu_divider_padding_top">60px</dimen>
<dimen name="menu_divider_padding_bottom">50px</dimen>
<dimen name="menu_content_padding_hor">55px</dimen>
<dimen name="menu_content_padding_top">38px</dimen>
<dimen name="menu_content_padding_bottom">38px</dimen>
<dimen name="menu_order_margin_top">43px</dimen>
<dimen name="menu_spacing_hor">37px</dimen>
<dimen name="menu_spacing_ver">20px</dimen>
<dimen name="goods_detail_padding_ver">55px</dimen> <dimen name="goods_detail_padding_ver">55px</dimen>
<dimen name="goods_detail_padding_hor">40px</dimen> <dimen name="goods_detail_padding_hor">40px</dimen>
...@@ -142,9 +149,10 @@ ...@@ -142,9 +149,10 @@
<dimen name="ts_dialog_title">40px</dimen> <dimen name="ts_dialog_title">40px</dimen>
<dimen name="ts_scan">36px</dimen> <dimen name="ts_scan">36px</dimen>
<dimen name="ts_expire">36px</dimen> <dimen name="ts_expire">36px</dimen>
<dimen name="ts_order_number">22sp</dimen> <dimen name="ts_menu_title">40px</dimen>
<dimen name="ts_menu_title">22sp</dimen> <dimen name="ts_menu_subtitle">32px</dimen>
<dimen name="ts_menu_subtitle">18sp</dimen> <dimen name="ts_menu_subtitle1">28px</dimen>
<dimen name="ts_order_number">36px</dimen>
<dimen name="ts_setting_name">18sp</dimen> <dimen name="ts_setting_name">18sp</dimen>
<dimen name="ts_setting_desc">16sp</dimen> <dimen name="ts_setting_desc">16sp</dimen>
</resources> </resources>
...@@ -35,7 +35,14 @@ ...@@ -35,7 +35,14 @@
<dimen name="tip_padding_top">33px</dimen> <dimen name="tip_padding_top">33px</dimen>
<dimen name="tip_padding_bottom">33px</dimen> <dimen name="tip_padding_bottom">33px</dimen>
<dimen name="menu_divider_padding_hor">10dp</dimen> <dimen name="menu_divider_padding_hor">10dp</dimen>
<dimen name="menu_divider_padding_ver">40dp</dimen> <dimen name="menu_divider_padding_top">60px</dimen>
<dimen name="menu_divider_padding_bottom">50px</dimen>
<dimen name="menu_content_padding_hor">55px</dimen>
<dimen name="menu_content_padding_top">38px</dimen>
<dimen name="menu_content_padding_bottom">38px</dimen>
<dimen name="menu_order_margin_top">43px</dimen>
<dimen name="menu_spacing_hor">37px</dimen>
<dimen name="menu_spacing_ver">20px</dimen>
<dimen name="goods_detail_padding_ver">55px</dimen> <dimen name="goods_detail_padding_ver">55px</dimen>
<dimen name="goods_detail_padding_hor">40px</dimen> <dimen name="goods_detail_padding_hor">40px</dimen>
...@@ -145,6 +152,7 @@ ...@@ -145,6 +152,7 @@
<dimen name="ts_order_number">12sp</dimen> <dimen name="ts_order_number">12sp</dimen>
<dimen name="ts_menu_title">22sp</dimen> <dimen name="ts_menu_title">22sp</dimen>
<dimen name="ts_menu_subtitle">18sp</dimen> <dimen name="ts_menu_subtitle">18sp</dimen>
<dimen name="ts_menu_subtitle1">14sp</dimen>
<dimen name="ts_setting_name">16sp</dimen> <dimen name="ts_setting_name">16sp</dimen>
<dimen name="ts_setting_desc">14sp</dimen> <dimen name="ts_setting_desc">14sp</dimen>
</resources> </resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment