|
|
@@ -15,28 +15,65 @@
|
|
|
</data>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="12dp">
|
|
|
+ android:layout_marginBottom="5dp">
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space1"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="328:11"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_bg"
|
|
|
imageDraw="@{goodsBean.select ? @drawable/bg_member_goods_type_selected : @drawable/bg_member_goods_type_normal}"
|
|
|
- android:layout_width="@{(float)SizeUtil.getScreenWidth() * 0.4388888888888889f, default=wrap_content}"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="474:426"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/space_bottom"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/space1"
|
|
|
- tools:src="@drawable/bg_member_goods_type_normal" />
|
|
|
+ tools:src="@drawable/bg_member_goods_type_selected" />
|
|
|
|
|
|
- <Space
|
|
|
- android:id="@+id/space1"
|
|
|
- android:layout_width="0dp"
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_member_buy_price"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:text="@{TextUtil.formatFloatWithout0End(goodsBean.RMBAmount, 2)}"
|
|
|
+ android:textColor="#2C3986"
|
|
|
+ android:textSize="28sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/iv_aging"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/iv_bg"
|
|
|
+ app:layout_constraintVertical_bias="0.4186046511627907"
|
|
|
+ tools:text="66"
|
|
|
+ tools:textColor="#404040" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ deleteLine="@{Boolean.TRUE}"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="-3dp"
|
|
|
+ android:text="@{@string/member_price(TextUtil.formatFloatWithout0End(goodsBean.originalAmount, 1))}"
|
|
|
+ android:textColor="#66233D6F"
|
|
|
+ android:textSize="11sp"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/tv_member_buy_price"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_member_buy_price"
|
|
|
+ tools:text="¥299" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/tv_member_buy_tag"
|
|
|
- app:layout_constraintStart_toStartOf="@+id/tv_member_buy_tag"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/tv_member_buy_tag" />
|
|
|
+ android:layout_marginEnd="2dp"
|
|
|
+ android:text="@string/rmb"
|
|
|
+ android:textColor="#2C3986"
|
|
|
+ android:textSize="15sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_member_buy_price"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/tv_member_buy_price" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_member_buy_tag"
|
|
|
@@ -44,89 +81,101 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_member_tag"
|
|
|
- android:drawablePadding="2dp"
|
|
|
- android:paddingHorizontal="10dp"
|
|
|
- android:paddingVertical="4dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
+ android:paddingVertical="2dp"
|
|
|
android:text="@string/member_buy_tag_txt"
|
|
|
android:textColor="@color/white"
|
|
|
- android:textSize="12sp"
|
|
|
- android:textStyle="bold"
|
|
|
- app:drawableStartCompat="@drawable/icon_hot"
|
|
|
+ android:textSize="12dp"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space2"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="328:14"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_bg" />
|
|
|
+
|
|
|
<TextView
|
|
|
+ android:id="@+id/tv_goods_name"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
android:text="@{goodsBean.name}"
|
|
|
- android:textColor="#404040"
|
|
|
- android:textSize="15sp"
|
|
|
+ android:textColor="#2C3986"
|
|
|
+ android:textSize="16sp"
|
|
|
android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toBottomOf="@id/iv_bg"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/iv_bg"
|
|
|
app:layout_constraintStart_toStartOf="@id/iv_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@id/iv_bg"
|
|
|
- app:layout_constraintVertical_bias="0.1416666666666667"
|
|
|
- tools:text="微信信息恢复" />
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space2"
|
|
|
+ tools:text="超级恢复" />
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_member_buy_price_unit"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:id="@+id/tv_goods_desc"
|
|
|
+ android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/rmb"
|
|
|
- android:textColor="@{goodsBean.select ? @color/member_buy_price_text_selected : @color/member_buy_price_text_normal}"
|
|
|
- android:textSize="20sp"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBaseline_toBaselineOf="@id/tv_member_buy_price"
|
|
|
- app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/iv_bg"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_member_buy_price"
|
|
|
- tools:textColor="#404040" />
|
|
|
+ android:layout_marginTop="3dp"
|
|
|
+ android:text="@{goodsBean.copywriting}"
|
|
|
+ android:textColor="#2C3986"
|
|
|
+ android:textSize="11sp"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/tv_goods_name"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_goods_name"
|
|
|
+ app:layout_constraintWidth_percent="0.6067073170731707"
|
|
|
+ tools:text="解锁全部恢复功能 (微信消息、微信好友、图片、视频、文件、音频)" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_member_buy_price"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@{TextUtil.formatFloatWithout0End(goodsBean.RMBAmount, 2)}"
|
|
|
- android:textColor="@{goodsBean.select ? @color/member_buy_price_text_selected : @color/member_buy_price_text_normal}"
|
|
|
- android:textSize="40sp"
|
|
|
- android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toBottomOf="@id/iv_bg"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/tv_member_buy_price_unit"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@id/iv_bg"
|
|
|
- app:layout_constraintVertical_bias="0.4526315789473684"
|
|
|
- tools:text="66"
|
|
|
- tools:textColor="#404040" />
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space3"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="328:12"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_goods_desc" />
|
|
|
|
|
|
- <TextView
|
|
|
- deleteLine="@{Boolean.TRUE}"
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/iv_aging"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginHorizontal="2dp"
|
|
|
+ android:background="@drawable/bg_member_aging"
|
|
|
+ app:layout_constraintDimensionRatio="924:87"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space3" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_member_unlimited"
|
|
|
+ imageRes="@{goodsBean.unlimitedImg}"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@{@string/member_price(TextUtil.formatFloatWithout0End(goodsBean.originalAmount, 1))}"
|
|
|
- android:textColor="@{goodsBean.select ? @color/member_original_price_text_selected : @color/member_original_price_text_normal}"
|
|
|
- android:textSize="12sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@id/iv_bg"
|
|
|
- app:layout_constraintEnd_toEndOf="@id/iv_bg"
|
|
|
- app:layout_constraintStart_toStartOf="@id/iv_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@id/iv_bg"
|
|
|
- app:layout_constraintVertical_bias="0.752"
|
|
|
- tools:text="¥299" />
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_aging"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/iv_aging"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_aging"
|
|
|
+ tools:src="@drawable/bg_member_recover_unlimited" />
|
|
|
|
|
|
- <TextView
|
|
|
+ <ImageView
|
|
|
+ imageRes="@{goodsBean.validityPeriod}"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@{goodsBean.description}"
|
|
|
- android:textColor="#7C4B00"
|
|
|
- android:textSize="12sp"
|
|
|
- android:textStyle="bold"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_aging"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/iv_member_unlimited"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_aging"
|
|
|
+ tools:src="@drawable/bg_member_permanent" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ isGone="@{!goodsBean.select}"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:src="@drawable/icon_member_goods_checked"
|
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_bg"
|
|
|
+ app:layout_constraintDimensionRatio="102:66"
|
|
|
app:layout_constraintEnd_toEndOf="@id/iv_bg"
|
|
|
- app:layout_constraintStart_toStartOf="@id/iv_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@id/iv_bg"
|
|
|
- app:layout_constraintVertical_bias="0.936"
|
|
|
- tools:text="单个功能恢复" />
|
|
|
+ app:layout_constraintWidth_percent="0.1036585365853659" />
|
|
|
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space_bottom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="2dp"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_aging" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</layout>
|