|
@@ -0,0 +1,285 @@
|
|
|
+<?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="wrap_content"
|
|
|
+ android:layout_marginBottom="12dp"
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="14dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:drawableStart="@drawable/icon_live_course_time_tag"
|
|
|
+ android:id="@+id/tv_time"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:drawablePadding="6dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="开课时间:2024-11-16 09:30" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_status"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_time"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_time"
|
|
|
+ tools:text="未开始" />
|
|
|
+
|
|
|
+
|
|
|
+ <com.cooleshow.base.widgets.QMUIRadiusImageView
|
|
|
+ android:id="@+id/iv_bg"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ app:layout_constraintDimensionRatio="h,16:9"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_time"
|
|
|
+ app:qmui_corner_radius="6dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="@dimen/dp_19"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginStart="@dimen/dp_8"
|
|
|
+ android:background="@drawable/shape_66000000_3dp"
|
|
|
+ android:gravity="center"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="@dimen/dp_6"
|
|
|
+ android:paddingEnd="@dimen/dp_6"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bg"
|
|
|
+ tools:text="单簧管" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:visibility="gone"
|
|
|
+ android:id="@+id/tv_course_status_tip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/shape_ffe7e7_15dp_left"
|
|
|
+ android:gravity="center"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingTop="3dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
+ android:paddingBottom="3dp"
|
|
|
+ android:text="销售中"
|
|
|
+ android:textColor="@color/color_ff1919"
|
|
|
+ android:textSize="@dimen/sp_10"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_course_name" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ tools:text="张豆张豆豆豆" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_des"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:textColor="@color/color_777777"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
|
|
+ tools:text="国际著名长笛演奏家、教育家子珊女士为您讲教育家子珊女士为您讲教育家子珊女士为您讲" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_buy_num"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@drawable/shape_12ff802c_2dp"
|
|
|
+ android:textColor="@color/color_ff6827"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ android:visibility="visible"
|
|
|
+ android:paddingStart="4dp"
|
|
|
+ android:paddingEnd="4dp"
|
|
|
+ android:paddingTop="3dp"
|
|
|
+ android:paddingBottom="3dp"
|
|
|
+ tools:visibility="visible"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/iv_course_tag"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_teacher_name"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ tools:text="6人已购买" />
|
|
|
+
|
|
|
+
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
+ android:id="@+id/iv_avatar"
|
|
|
+ android:layout_width="20dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_teacher_name" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_buy_num"
|
|
|
+ android:id="@+id/tv_teacher_name"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:maxLines="1"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:layout_marginEnd="5dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="6dp"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintHorizontal_bias="0"
|
|
|
+ app:layout_constraintWidth_default="wrap"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_avatar"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_des"
|
|
|
+ tools:text="严老师严严老师严严老师严严老师严严老师严严老师严严老师严严老师严严老师严严老师严严老师严" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:visibility="gone"
|
|
|
+ android:id="@+id/tv_price"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="120"
|
|
|
+ android:paddingStart="3dp"
|
|
|
+ android:textColor="@color/color_f44541"
|
|
|
+ android:textSize="@dimen/sp_20"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_price_unit" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:visibility="gone"
|
|
|
+ android:id="@+id/tv_price_symbol"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="¥"
|
|
|
+ android:textColor="@color/color_f44541"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_price"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_price" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:visibility="gone"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:id="@+id/tv_price_unit"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:paddingStart="2dp"
|
|
|
+ android:text="/4课时"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_price" />
|
|
|
+ <ImageView
|
|
|
+ android:layout_marginEnd="4dp"
|
|
|
+ android:id="@+id/iv_course_tag"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/icon_course_completed_tag"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_completed_title"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_course_completed_title"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_course_completed_title" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_completed_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="已上课时"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_course_completed_value"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_completed_value" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_completed_value"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="3dp"
|
|
|
+ android:paddingEnd="3dp"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_course_total_title"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_total_title" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_total_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:text="/总课时"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_course_total_value"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_course_total_value" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_total_value"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="3dp"
|
|
|
+ android:paddingEnd="3dp"
|
|
|
+ android:text="0"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_teacher_name"
|
|
|
+ app:layout_constraintRight_toRightOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_chat"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ android:src="@drawable/icon_chat_small"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_title"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|