|
|
@@ -0,0 +1,211 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout 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">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="orderBean"
|
|
|
+ type="com.datarecovery.master.data.api.bean.OrderBean" />
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ tools:background="@color/black10">
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:background="@drawable/bg_order_card"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/order_header"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/order_header"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/order_header"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/space6"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/order_header"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginHorizontal="16dp"
|
|
|
+ android:background="@drawable/bg_order_header"
|
|
|
+ app:layout_constraintDimensionRatio="328:36"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_order"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ android:textColor="#202020"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/order_header"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/order_header"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/order_header"
|
|
|
+ tools:text="订单号:adfe21649518788" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_copy_order"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:background="@drawable/bg_order_copy"
|
|
|
+ android:paddingHorizontal="10dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
+ android:text="@string/order_copy"
|
|
|
+ android:textColor="@color/colorPrimary"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/order_header"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/order_header"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/order_header" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="360:12"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/order_header" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_order_buy_type"
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/order_buy_type"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_order"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space1" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_order_buy_type"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_order_buy_type"
|
|
|
+ tools:text="图片恢复" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space2"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="360:8"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_order_buy_type" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_order_buy_time"
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/order_buy_time"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_order"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space2" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_order_buy_time"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_order_buy_time"
|
|
|
+ tools:text="2023-12-16" />
|
|
|
+
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="360:8"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_order_buy_time" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_order_member_validity"
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/order_member_validity"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_order"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space3" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/Order_List_Content_Txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_order_member_validity"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_order_member_validity"
|
|
|
+ tools:text="永久有效" />
|
|
|
+
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space4"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="360:12"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_order_member_validity" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_line"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#F5F5F5"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/tv_copy_order"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/tv_order"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space4" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space5"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="360:8"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/v_line" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="#404040"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/space7"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_order"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
+ tools:text="金额:¥66" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_copy_link"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:background="@drawable/bg_common_btn"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/order_copy_link"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/space6"
|
|
|
+ app:layout_constraintDimensionRatio="120:36"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/order_header"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
+ app:layout_constraintWidth_percent="0.3333333333333333" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/space6"
|
|
|
+ android:id="@+id/space7"
|
|
|
+ app:layout_constraintDimensionRatio="360:5"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space6"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintDimensionRatio="360:8" />
|
|
|
+
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+</layout>
|