詹子聪 5 سال پیش
والد
کامیت
e83730666e
1فایلهای تغییر یافته به همراه30 افزوده شده و 27 حذف شده
  1. 30 27
      app/src/main/res/layout/activity_goods_add.xml

+ 30 - 27
app/src/main/res/layout/activity_goods_add.xml

@@ -29,7 +29,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="商品标题[必填]"
+                android:hint="商品标题"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -53,7 +53,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="封面URL[必填]"
+                android:hint="封面URL"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -69,7 +69,6 @@
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
-
             <com.google.android.material.textfield.TextInputLayout
                 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                 android:layout_width="match_parent"
@@ -77,7 +76,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="描述[可选]"
+                android:hint="商品推广URL"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -87,12 +86,13 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_desc"
+                    android:id="@+id/et_goods_url"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
+
             <com.google.android.material.textfield.TextInputLayout
                 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                 android:layout_width="match_parent"
@@ -100,7 +100,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="一句话推荐[必填]"
+                android:hint="描述"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -110,7 +110,7 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_reason"
+                    android:id="@+id/et_desc"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:textSize="@dimen/text_normal_s" />
@@ -123,7 +123,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="原价[单位:分,必填]"
+                android:hint="一句话推荐"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -133,11 +133,9 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_old_price"
+                    android:id="@+id/et_reason"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:digits="0123456789"
-                    android:inputType="number"
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
@@ -148,7 +146,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="展示出来的现价[单位:分,原价-(原价-真现价)/2]"
+                android:hint="原价[单位:分]"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -158,7 +156,7 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_now_price"
+                    android:id="@+id/et_old_price"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:digits="0123456789"
@@ -166,8 +164,6 @@
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
-
-
             <com.google.android.material.textfield.TextInputLayout
                 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                 android:layout_width="match_parent"
@@ -175,7 +171,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="卖家所在省份[可选]"
+                android:hint="展示出来的现价[单位:分,原价-(原价-真现价)/2]"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -185,12 +181,16 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_province"
+                    android:id="@+id/et_now_price"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
+                    android:digits="0123456789"
+                    android:inputType="number"
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
+
+
             <com.google.android.material.textfield.TextInputLayout
                 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                 android:layout_width="match_parent"
@@ -198,7 +198,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="商家名称[必填]"
+                android:hint="卖家所在省份"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -208,10 +208,11 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_shop_name"
+                    android:id="@+id/et_province"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:textSize="@dimen/text_normal_s" />
+                    android:textSize="@dimen/text_normal_s"
+                    android:text="未知"/>
             </com.google.android.material.textfield.TextInputLayout>
 
             <com.google.android.material.textfield.TextInputLayout
@@ -221,7 +222,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="优惠券信息"
+                android:hint="商家名称"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -231,7 +232,7 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_coupon"
+                    android:id="@+id/et_shop_name"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:textSize="@dimen/text_normal_s" />
@@ -244,7 +245,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="商品推广URL[必填]"
+                android:hint="优惠券信息[可选]"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -254,12 +255,14 @@
                 app:boxStrokeWidthFocused="@dimen/width_stroke">
 
                 <com.google.android.material.textfield.TextInputEditText
-                    android:id="@+id/et_goods_url"
+                    android:id="@+id/et_coupon"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:textSize="@dimen/text_normal_s" />
             </com.google.android.material.textfield.TextInputLayout>
 
+
+
             <com.google.android.material.textfield.TextInputLayout
                 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
                 android:layout_width="match_parent"
@@ -267,7 +270,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="月销量[单位:件,必填]"
+                android:hint="月销量[单位:件]"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -292,7 +295,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="好评率[小数,必填]"
+                android:hint="好评率[小数]"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"
@@ -317,7 +320,7 @@
                 android:layout_marginStart="@dimen/margin_default"
                 android:layout_marginTop="@dimen/margin_default"
                 android:layout_marginEnd="@dimen/margin_default"
-                android:hint="评论条数[可选]"
+                android:hint="评论条数"
                 app:boxBackgroundMode="outline"
                 app:boxCornerRadiusBottomEnd="4dp"
                 app:boxCornerRadiusBottomStart="4dp"