<?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:scrollbars="none"
|
app:layout_constraintBottom_toTopOf="@id/ll_bottom"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:background="@color/page_bg"
|
android:orientation="vertical"
|
android:layout_height="wrap_content">
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
android:id="@+id/banner"
|
android:layout_width="match_parent"
|
android:layout_height="312dp"
|
android:scaleType="centerCrop"
|
android:foreground="@color/black33"
|
app:is_auto_loop="true"
|
app:layout_constraintTop_toTopOf="parent" />
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="13dp"
|
android:layout_marginHorizontal="14dp"
|
android:background="@drawable/bg_white_10dp">
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/iv_collected"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@id/tv_name"
|
android:src="@mipmap/star_empty"
|
android:padding="5dp"
|
android:layout_marginEnd="9dp"
|
app:layout_constraintBottom_toBottomOf="@id/tv_name"/>
|
<TextView
|
android:id="@+id/tv_name"
|
android:layout_width="0dp"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintEnd_toStartOf="@id/iv_collected"
|
tools:text="跳绳训练"
|
android:layout_marginTop="10dp"
|
android:layout_marginStart="10dp"
|
android:textColor="@color/textColor"
|
android:textSize="18sp"
|
android:textStyle="bold"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_time"
|
tools:text="10分钟|H3"
|
android:textColor="@color/textColor"
|
android:textSize="12sp"
|
android:layout_marginTop="6dp"
|
app:layout_constraintStart_toStartOf="@id/tv_name"
|
app:layout_constraintTop_toBottomOf="@id/tv_name"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_type"
|
tools:text="瘦身|手臂"
|
android:textColor="@color/textColor"
|
android:textSize="12sp"
|
android:layout_marginTop="6dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginEnd="10dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_name"/>
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/tv_time"
|
android:layout_marginTop="11dp"/>
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_info"
|
app:layout_constraintTop_toBottomOf="@id/tv_time"
|
android:layout_marginTop="22dp"
|
android:textSize="12sp"
|
android:textColor="@color/textColor66"
|
android:layout_marginHorizontal="10dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="12dp"
|
android:text="运动使人的体温升高,很多人在运动后由于燥"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/bg_white_10dp"
|
android:layout_marginTop="9dp"
|
android:orientation="vertical"
|
android:layout_marginHorizontal="14dp">
|
<TextView
|
android:layout_width="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_height="wrap_content"
|
android:text="课程介绍"
|
android:layout_marginTop="11dp"
|
android:layout_marginStart="11dp"
|
android:textColor="@color/textColor"
|
android:textSize="14sp"
|
android:textStyle="bold"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/rv_list"
|
android:layout_marginTop="3dp"
|
android:layout_marginBottom="12dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_1"/>
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/tv_2"
|
android:layout_width="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_height="wrap_content"
|
android:text="更多课程"
|
android:layout_marginTop="18dp"
|
android:layout_marginStart="18dp"
|
android:textColor="@color/textColor"
|
android:textSize="16sp"
|
android:textStyle="bold"/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="6dp"
|
android:id="@+id/rv_course" />
|
<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:visibility="gone"
|
android:textStyle="bold"
|
android:layout_marginTop="3dp"
|
android:drawablePadding="5dp"
|
android:text="购买后“瘦身|手臂”相关课程均可查看;\n长期有效,我们将持续为您更新。"
|
android:layout_marginBottom="10dp"/>
|
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:text="课程详情"
|
app:layout_constraintTop_toTopOf="parent"
|
android:layout_marginTop="55dp"
|
android:textColor="@color/white"
|
android:textSize="18sp"
|
android:id="@+id/tv_title"
|
android:textStyle="bold"/>
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toTopOf="@id/tv_title"
|
app:layout_constraintBottom_toBottomOf="@id/tv_title"
|
app:layout_constraintStart_toStartOf="parent"
|
android:src="@mipmap/back_white"
|
android:padding="10dp"
|
android:id="@+id/iv_back"
|
android:layout_marginStart="4dp"/>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="70dp"
|
android:background="@color/white"
|
android:gravity="center_vertical"
|
android:id="@+id/ll_bottom"
|
app:layout_constraintBottom_toBottomOf="parent">
|
<TextView
|
android:id="@+id/tv_start"
|
style="@style/style_btn_action"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:visibility="gone"
|
android:layout_marginHorizontal="45dp"
|
android:text="开始训练"/>
|
<LinearLayout
|
android:id="@+id/ll_bottom_1"
|
android:visibility="gone"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
<TextView
|
android:id="@+id/tv_price"
|
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>
|
|
</RelativeLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toTopOf="@id/ll_bottom" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|