|
|
@@ -7,7 +7,7 @@
|
|
|
android:fillViewport="true"
|
|
|
android:scrollbars="none"
|
|
|
tools:context="com.modular.booking.activity.services.BServiceAddActivity">
|
|
|
-
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
@@ -16,61 +16,7 @@
|
|
|
android:focusableInTouchMode="true"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
- <!--抬头信息-->
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="80dp"
|
|
|
- android:layout_centerHorizontal="true">
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/max_img"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:alpha="0.16"
|
|
|
- android:scaleType="fitXY" />
|
|
|
-
|
|
|
- <de.hdodenhof.circleimageview.CircleImageView
|
|
|
- android:id="@+id/iv_header"
|
|
|
- android:layout_width="55dp"
|
|
|
- android:layout_height="55dp"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="12dp"
|
|
|
- android:layout_marginStart="12dp"
|
|
|
- android:background="@null"
|
|
|
- android:src="@drawable/defaultpic"></de.hdodenhof.circleimageview.CircleImageView>
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_centerVertical="true"
|
|
|
- android:layout_marginLeft="15dp"
|
|
|
- android:layout_toRightOf="@+id/iv_header"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_title"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:drawableLeft="@drawable/icon_detail"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="********"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="20sp"
|
|
|
- android:textStyle="bold" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_sub"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:drawableLeft="@drawable/icon_map"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="********"
|
|
|
- android:textColor="@color/black"
|
|
|
- android:textSize="14sp" />
|
|
|
- </LinearLayout>
|
|
|
- </RelativeLayout>
|
|
|
+ <include layout="@layout/include_add_top"></include>
|
|
|
|
|
|
<!--KTV-->
|
|
|
<LinearLayout
|
|
|
@@ -464,8 +410,7 @@
|
|
|
android:id="@+id/ll_food"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- >
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/food_peoples_rl"
|
|
|
@@ -583,160 +528,96 @@
|
|
|
android:text="仅限1桌"
|
|
|
android:textColor="@color/hintColor" />
|
|
|
</RelativeLayout>
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="10dp" />
|
|
|
-
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/name_rl"
|
|
|
- style="@style/item_menu">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tag_book_name"
|
|
|
- style="@style/item_menu_tag"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="@string/service_name" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_book_name"
|
|
|
- style="@style/item_menu_input"
|
|
|
- android:layout_width="290dp"
|
|
|
- android:layout_toRightOf="@id/tag_book_name"
|
|
|
- android:drawablePadding="6dp"
|
|
|
- android:ellipsize="end"
|
|
|
- android:hint="@string/common_input2" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
-
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/sex_rl"
|
|
|
- style="@style/item_menu">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tag_book_sex"
|
|
|
- style="@style/item_menu_tag"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="性别" />
|
|
|
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/rg_sex"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:gravity="center"
|
|
|
- android:layout_toRightOf="@+id/tag_book_sex"
|
|
|
- android:orientation="horizontal" >
|
|
|
-
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/rb_boy"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/me_menu_item_normal"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+
|
|
|
+ android:textColor="#6EAEE4"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="排队实况"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ style="@style/item_menu"
|
|
|
+ android:layout_margin="5dp"
|
|
|
+ android:background="@drawable/shape_sample_one_1dp">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvMSeatsName"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="小桌(1-2人)"
|
|
|
+ android:layout_alignParentLeft="true"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvMSeatsNum"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="130dp"
|
|
|
- android:checked="true"
|
|
|
- android:button="@null"
|
|
|
- android:drawableLeft="@drawable/oa_rb_button_bg"
|
|
|
- android:text="先生" />
|
|
|
-
|
|
|
- <RadioButton
|
|
|
- android:id="@+id/rb_girl"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="前方8桌"
|
|
|
+ android:layout_alignParentRight="true"/>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:background="@drawable/shape_sample_one_1dp"
|
|
|
+ android:layout_margin="5dp"
|
|
|
+ style="@style/item_menu">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvZSeatsName"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="20dp"
|
|
|
-
|
|
|
- android:button="@null"
|
|
|
- android:drawableLeft="@drawable/oa_rb_button_bg"
|
|
|
- android:text="女士" />
|
|
|
- </RadioGroup>
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/phone_rl"
|
|
|
- style="@style/item_menu">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tag_book_phone"
|
|
|
- style="@style/item_menu_tag"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="@string/service_phone" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_book_phone"
|
|
|
- style="@style/item_menu_input"
|
|
|
- android:layout_width="110dp"
|
|
|
- android:drawableLeft="@drawable/icon_tel"
|
|
|
- android:drawablePadding="2dp"
|
|
|
- android:ellipsize="end"
|
|
|
- android:hint="@string/common_input2"
|
|
|
- android:inputType="phone"
|
|
|
- android:textColor="#0CB88C" />
|
|
|
-
|
|
|
- </RelativeLayout>
|
|
|
- <RelativeLayout
|
|
|
- android:id="@+id/notes_rl"
|
|
|
- android:layout_marginTop="10dp"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- style="@style/item_menu">
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tag_book_notes"
|
|
|
- style="@style/item_menu_tag"
|
|
|
- android:layout_width="50dp"
|
|
|
- android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="@string/service_notes" />
|
|
|
-
|
|
|
- <EditText
|
|
|
- android:id="@+id/et_book_notes"
|
|
|
- style="@style/item_menu_input"
|
|
|
- android:gravity="top|left"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="100dp"
|
|
|
- android:layout_toRightOf="@id/tag_book_notes"
|
|
|
- android:drawablePadding="6dp"
|
|
|
- android:hint="请输入您的要求,我们会尽量满足" />
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="中桌(3-5人)"
|
|
|
+ android:layout_alignParentLeft="true"/>
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvZSeatsNum"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="前方8桌"
|
|
|
+ android:layout_alignParentRight="true"/>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:background="@drawable/shape_sample_one_1dp"
|
|
|
+ android:layout_margin="5dp"
|
|
|
+ style="@style/item_menu">
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvDSeatsName"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="大桌(6人以上)"
|
|
|
+ android:layout_alignParentLeft="true"/>
|
|
|
|
|
|
- </RelativeLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvDSeatsNum"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:text="前方8桌"
|
|
|
+ android:layout_alignParentRight="true"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <RelativeLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_marginBottom="30dp"
|
|
|
- android:layout_marginTop="60dp">
|
|
|
+
|
|
|
+ <include layout="@layout/include_add_bottom"></include>
|
|
|
|
|
|
- <Button
|
|
|
- android:id="@+id/submit_btn"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
- android:layout_marginBottom="10dp"
|
|
|
- android:layout_marginLeft="20dp"
|
|
|
- android:layout_marginRight="20dp"
|
|
|
- android:background="@drawable/bg_bule_btn"
|
|
|
- android:padding="10dp"
|
|
|
- android:text="@string/app_button_commit"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/text_main" />
|
|
|
- </RelativeLayout>
|
|
|
</LinearLayout>
|
|
|
|
|
|
</ScrollView>
|