|
|
@@ -1,9 +1,85 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<RelativeLayout 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:context="com.modular.booking.activity.services.DishSelectActivity">
|
|
|
+ <include layout="@layout/include_add_top"
|
|
|
+ android:id="@+id/dish_layout_top"></include>
|
|
|
|
|
|
-</android.support.constraint.ConstraintLayout>
|
|
|
+ <com.flipboard.bottomsheet.BottomSheetLayout
|
|
|
+ android:id="@+id/bottom_sheet_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_below="@+id/dish_layout_top"
|
|
|
+ >
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <ListView
|
|
|
+ android:id="@+id/lv_product_category"
|
|
|
+ android:layout_width="100dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:fadingEdge="none"
|
|
|
+ android:scrollbars="none"
|
|
|
+ android:divider="@null"
|
|
|
+ android:choiceMode="singleChoice"/>
|
|
|
+ <View
|
|
|
+ android:layout_width="1px"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/divider"
|
|
|
+ />
|
|
|
+ <com.core.widget.PinnedSectionListView
|
|
|
+ android:id="@+id/lv_dish_product"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:cacheColorHint="#00000000"
|
|
|
+ android:gravity="fill" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </com.flipboard.bottomsheet.BottomSheetLayout>
|
|
|
+ <!--底部购物车布局-->
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_bottom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_height="60dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_bottom"
|
|
|
+ android:background="#CC000000"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_height="50dp"
|
|
|
+ android:weightSum="3">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginLeft="70dp"
|
|
|
+ android:textColor="@color/gray_light"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:text="您的购物车空空如洗哦"/>
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/shape_btn_blue_gradient"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:layout_gravity="right"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="选好了"/>
|
|
|
+ </LinearLayout>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="60dp"
|
|
|
+ android:layout_height="60dp"
|
|
|
+ android:layout_marginLeft="7dp"
|
|
|
+ android:layout_marginBottom="7dp"
|
|
|
+ android:src="@drawable/icon_shop_empty"/>
|
|
|
+
|
|
|
+ </RelativeLayout>
|
|
|
+</RelativeLayout>
|