|
|
@@ -3,21 +3,32 @@
|
|
|
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:layout_height="match_parent"
|
|
|
+ android:background="@color/color_FFF1F2F5">
|
|
|
|
|
|
<com.adealink.weparty.commonui.widget.CommonTopBar
|
|
|
android:id="@+id/top_bar"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/common_top_bar_height"
|
|
|
+ android:background="@color/white"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
app:top_bar_title="@string/order_detail_title" />
|
|
|
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_top_bg"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="375:193"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/top_bar"
|
|
|
+ app:srcCompat="@drawable/order_detail_top_bg" />
|
|
|
+
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- android:background="@color/color_FFF1F2F5"
|
|
|
android:orientation="vertical"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
@@ -29,16 +40,6 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:paddingBottom="60dp">
|
|
|
|
|
|
- <androidx.appcompat.widget.AppCompatImageView
|
|
|
- android:id="@+id/iv_top_bg"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="375:193"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:srcCompat="@drawable/order_detail_top_bg" />
|
|
|
-
|
|
|
<com.adealink.weparty.commonui.widget.EvaluateView
|
|
|
android:id="@+id/v_evaluate"
|
|
|
android:layout_width="wrap_content"
|
|
|
@@ -95,6 +96,7 @@
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_order"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
@@ -192,6 +194,72 @@
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
+ <!-- 产品单价 -->
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_order_product_price"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="30dp"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cl_order_product_type">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_product_price"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="@string/order_product_price"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/cl_product_price_detail"
|
|
|
+ app:layout_constraintHorizontal_weight="2"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_product_price_detail"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="1"
|
|
|
+ app:layout_constraintHorizontal_weight="3"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/tv_product_price"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatImageView
|
|
|
+ android:id="@+id/iv_product_price_detail"
|
|
|
+ android:layout_width="11dp"
|
|
|
+ android:layout_height="11dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/tv_product_price_detail"
|
|
|
+ app:layout_constraintHorizontal_bias="1"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:srcCompat="@drawable/common_wallet_coin_32_ic" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_product_price_detail"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="2dp"
|
|
|
+ android:gravity="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constrainedWidth="true"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/iv_product_price_detail"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="1000" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
<!-- 购买数量 -->
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:id="@+id/cl_order_count"
|
|
|
@@ -199,7 +267,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:minHeight="30dp"
|
|
|
android:paddingVertical="6dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/cl_order_product_type">
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cl_order_product_price">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
android:id="@+id/tv_order_count"
|
|
|
@@ -234,6 +302,48 @@
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
+ <!-- 备注 -->
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_order_remark"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="30dp"
|
|
|
+ android:paddingVertical="6dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cl_order_count">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_order_remark"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="@string/order_remark"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/tv_order_remark_detail"
|
|
|
+ app:layout_constraintHorizontal_weight="2"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_order_remark_detail"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constrainedWidth="true"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHorizontal_bias="1"
|
|
|
+ app:layout_constraintHorizontal_weight="3"
|
|
|
+ app:layout_constraintStart_toEndOf="@id/tv_order_remark"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="1" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
<!-- 订单编号 -->
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:id="@+id/cl_order_id"
|
|
|
@@ -241,7 +351,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:minHeight="30dp"
|
|
|
android:paddingVertical="6dp"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/cl_order_count">
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cl_order_remark">
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
|
android:id="@+id/tv_order_id"
|
|
|
@@ -360,6 +470,100 @@
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/cl_user_refund"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginHorizontal="16dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:background="@drawable/order_detail_bg"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="8dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cl_order"
|
|
|
+ tools:visibility="visible">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_reason_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:gravity="start|center"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="@string/order_playmate_customer_refund_reason"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/v_reason"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:background="@drawable/common_input_edit_bg"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="8dp"
|
|
|
+ app:layout_constrainedHeight="true"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_reason_title">
|
|
|
+
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
+ android:id="@+id/sv_reason"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:layout_constrainedHeight="true"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintHeight_max="250dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintVertical_chainStyle="spread_inside">
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_reason"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@null"
|
|
|
+ android:gravity="start|top"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLength="800"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textColorHint="@color/color_FFCDCFD9"
|
|
|
+ tools:hint="asdf;asdjfka;" />
|
|
|
+
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
|
+ android:id="@+id/tv_reason_picture_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="@string/order_playmate_customer_refund_picture"
|
|
|
+ android:textColor="@color/color_FF1D2129"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/v_reason" />
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/rv_reason_picture"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/tv_reason_picture_title" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|