|
|
@@ -9,7 +9,29 @@
|
|
|
name="orderBean"
|
|
|
type="com.datarecovery.master.data.api.bean.OrderBean" />
|
|
|
|
|
|
+ <variable
|
|
|
+ name="copyOrderClick"
|
|
|
+ type="android.view.View.OnClickListener" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="copyLinkClick"
|
|
|
+ type="android.view.View.OnClickListener" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="copyAuthCodeClick"
|
|
|
+ type="android.view.View.OnClickListener" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="cancelOrderClick"
|
|
|
+ type="android.view.View.OnClickListener" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="payOrderClick"
|
|
|
+ type="android.view.View.OnClickListener" />
|
|
|
+
|
|
|
+
|
|
|
<import type="com.datarecovery.master.utils.DateUtil" />
|
|
|
+
|
|
|
</data>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
@@ -57,6 +79,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginEnd="12dp"
|
|
|
android:background="@drawable/bg_order_copy"
|
|
|
+ android:onClick="@{copyOrderClick}"
|
|
|
android:paddingHorizontal="10dp"
|
|
|
android:paddingVertical="2dp"
|
|
|
android:text="@string/order_copy"
|
|
|
@@ -102,9 +125,9 @@
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
- isGone="@{!orderBean.isShowLink}"
|
|
|
android:id="@+id/tv_auth_code_title"
|
|
|
style="@style/Order_List_Content_Txt"
|
|
|
+ isGone="@{!orderBean.isShowLink}"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:text="@string/order_auth_code"
|
|
|
@@ -113,14 +136,14 @@
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
- android:singleLine="true"
|
|
|
- android:maxWidth="100dp"
|
|
|
- android:text="@{orderBean.authCode}"
|
|
|
- isGone="@{!orderBean.isShowLink}"
|
|
|
android:id="@+id/tv_auth_code"
|
|
|
+ isGone="@{!orderBean.isShowLink}"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="16dp"
|
|
|
+ android:maxWidth="100dp"
|
|
|
+ android:singleLine="true"
|
|
|
+ android:text="@{orderBean.authCode}"
|
|
|
android:textColor="@color/colorPrimary"
|
|
|
android:textSize="14sp"
|
|
|
android:textStyle="bold"
|
|
|
@@ -131,21 +154,22 @@
|
|
|
<TextView
|
|
|
android:id="@+id/tv_auth_code_copy"
|
|
|
isGone="@{!orderBean.isShowLink}"
|
|
|
- android:background="@drawable/bg_order_auth_copy"
|
|
|
- android:layout_marginStart="6dp"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/tv_auth_code"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:background="@drawable/bg_order_auth_copy"
|
|
|
+ android:onClick="@{copyAuthCodeClick}"
|
|
|
android:paddingHorizontal="8dp"
|
|
|
android:paddingVertical="1dp"
|
|
|
android:text="@string/order_copy"
|
|
|
android:textColor="#404040"
|
|
|
android:textSize="12sp"
|
|
|
- app:layout_constraintBaseline_toBaselineOf="@+id/tv_auth_code" />
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_auth_code"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_auth_code" />
|
|
|
|
|
|
<Space
|
|
|
- isGone="@{!orderBean.isShowLink}"
|
|
|
android:id="@+id/space_auth_code"
|
|
|
+ isGone="@{!orderBean.isShowLink}"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
app:layout_constraintDimensionRatio="360:8"
|
|
|
@@ -233,6 +257,41 @@
|
|
|
app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
tools:text="金额:¥66" />
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_cancel_order"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginEnd="12dp"
|
|
|
+ android:background="@drawable/bg_order_cancel"
|
|
|
+ android:gravity="center"
|
|
|
+ android:onClick="@{cancelOrderClick}"
|
|
|
+ android:text="@string/order_cancel_order"
|
|
|
+ android:textColor="#AAAAAA"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/space6"
|
|
|
+ app:layout_constraintDimensionRatio="88:36"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/tv_pay"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
+ app:layout_constraintWidth_percent="0.2444444444444444" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:onClick="@{payOrderClick}"
|
|
|
+ android:id="@+id/tv_pay"
|
|
|
+ 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_pay"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/space6"
|
|
|
+ app:layout_constraintDimensionRatio="88:36"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/order_header"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
+ app:layout_constraintWidth_percent="0.2444444444444444" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_copy_link"
|
|
|
@@ -242,6 +301,7 @@
|
|
|
android:layout_marginEnd="12dp"
|
|
|
android:background="@drawable/bg_common_btn"
|
|
|
android:gravity="center"
|
|
|
+ android:onClick="@{copyLinkClick}"
|
|
|
android:text="@string/order_copy_link"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="14sp"
|
|
|
@@ -250,7 +310,8 @@
|
|
|
app:layout_constraintDimensionRatio="120:36"
|
|
|
app:layout_constraintEnd_toEndOf="@+id/order_header"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/space5"
|
|
|
- app:layout_constraintWidth_percent="0.3333333333333333" />
|
|
|
+ app:layout_constraintWidth_percent="0.3333333333333333"
|
|
|
+ tools:visibility="gone" />
|
|
|
|
|
|
<Space
|
|
|
android:id="@+id/space7"
|