<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<androidx.core.widget.NestedScrollView
|
android:id="@+id/scrollView"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:background="@color/page_bg"
|
android:scrollbars="none"
|
app:layout_constraintBottom_toTopOf="@id/ll_bottom"
|
app:layout_constraintTop_toTopOf="parent">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_tip"
|
android:layout_gravity="center"
|
android:drawableStart="@mipmap/tixingtishi"
|
android:gravity="center"
|
android:textColor="@color/colorRed"
|
android:textSize="11sp"
|
android:textStyle="bold"
|
android:layout_marginTop="10dp"
|
android:drawablePadding="5dp"
|
android:text="购买后“瘦身|手臂”相关课程均可查看;\n长期有效,我们将持续为您更新。"/>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="11dp"
|
android:layout_marginHorizontal="14dp"
|
android:background="@drawable/bg_white_10dp">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_type"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginEnd="11dp"
|
android:layout_marginTop="16dp"
|
android:textSize="14sp"
|
android:textColor="@color/colorDark"
|
tools:text="瘦身|手臂"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="11dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_type"
|
android:text="购买部位"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:textColor="@color/colorDark"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_price"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/tv_type"
|
android:layout_marginEnd="11dp"
|
android:layout_marginTop="16dp"
|
android:textSize="14sp"
|
android:textColor="@color/colorDark"
|
android:text="¥0"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="11dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_price"
|
android:text="支付价格"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:textColor="@color/colorDark"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_count"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/tv_price"
|
android:layout_marginEnd="11dp"
|
android:layout_marginTop="16dp"
|
android:textSize="14sp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="16dp"
|
android:textColor="@color/colorDark"
|
android:text="持续更新"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="11dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_count"
|
android:text="课程类型"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:textColor="@color/colorDark"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:id="@+id/ll_package"
|
android:visibility="gone"
|
android:background="@drawable/bg_white_10dp"
|
android:layout_marginTop="11dp"
|
android:layout_marginHorizontal="14dp">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="可选套餐"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:layout_marginTop="14dp"
|
android:textColor="@color/textColor"
|
android:layout_marginHorizontal="10dp"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_package"
|
android:layout_marginTop="14dp"/>
|
</LinearLayout>
|
<LinearLayout
|
android:id="@+id/ll_coupon"
|
android:layout_width="match_parent"
|
android:background="@drawable/bg_white_10dp"
|
android:layout_marginTop="11dp"
|
android:orientation="horizontal"
|
android:gravity="center_vertical"
|
android:visibility="gone"
|
android:layout_marginHorizontal="14dp"
|
android:layout_height="wrap_content">
|
<TextView
|
android:textColor="@color/colorDark"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:layout_marginStart="14dp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="选择优惠券"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_coupon"
|
android:text="请选择"
|
android:gravity="end"
|
android:drawablePadding="11dp"
|
android:drawableEnd="@mipmap/more_black"
|
android:paddingVertical="15dp"
|
android:layout_marginEnd="6dp"
|
android:textColor="@color/colorPrimary"
|
android:textStyle="bold"
|
android:textSize="14sp"/>
|
</LinearLayout>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/bg_white_10dp"
|
android:layout_marginTop="11dp"
|
android:layout_marginHorizontal="14dp">
|
<TextView
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
android:id="@+id/tv_2"
|
android:textColor="@color/colorDark"
|
android:textSize="14sp"
|
android:textStyle="bold"
|
android:layout_marginStart="14dp"
|
android:layout_width="wrap_content"
|
android:layout_marginTop="14dp"
|
android:layout_height="wrap_content"
|
android:text="支付详情"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_total"
|
app:layout_constraintTop_toBottomOf="@id/tv_2"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="¥0"
|
android:layout_marginTop="13dp"
|
android:layout_marginEnd="6dp"
|
android:textColor="@color/textColor66"
|
android:textSize="12sp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="14dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_total"
|
android:text="总金额"
|
android:textSize="12sp"
|
android:textColor="@color/colorDark"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_coupon_money"
|
app:layout_constraintTop_toBottomOf="@id/tv_total"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="¥0"
|
android:layout_marginTop="13dp"
|
android:layout_marginEnd="6dp"
|
android:textColor="@color/textColor66"
|
android:textSize="12sp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="14dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_coupon_money"
|
android:text="优惠券"
|
android:textSize="12sp"
|
android:textColor="@color/colorDark"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_pay_money"
|
app:layout_constraintTop_toBottomOf="@id/tv_coupon_money"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="¥0"
|
android:layout_marginTop="13dp"
|
android:layout_marginEnd="6dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="18dp"
|
android:textColor="@color/colorRed"
|
android:textSize="12sp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="14dp"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_pay_money"
|
android:text="支付合计"
|
android:textSize="12sp"
|
android:textColor="@color/colorDark"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:text="购买后可长期使用,我们将持续为您更新最新课程。"
|
android:textColor="@color/colorRed"
|
android:layout_marginBottom="8dp"
|
android:textSize="12sp"
|
android:layout_marginTop="8dp"
|
android:textStyle="bold"/>
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
|
<LinearLayout
|
android:id="@+id/ll_bottom"
|
android:layout_width="match_parent"
|
android:layout_height="70dp"
|
android:background="@color/white"
|
android:gravity="center_vertical"
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<TextView
|
android:id="@+id/tv_money"
|
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
android:layout_marginStart="14dp"
|
android:gravity="center"
|
tools:text="¥0"
|
android:textColor="@color/colorRed"
|
android:textSize="24sp"
|
android:textStyle="bold" />
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="9dp"
|
android:layout_weight="1"
|
android:orientation="vertical"/>
|
|
<TextView
|
android:id="@+id/tv_action"
|
style="@style/style_btn_action"
|
android:layout_width="160dp"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="10dp"
|
android:text="立即购买" />
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|