|
@@ -0,0 +1,148 @@
|
|
|
+<?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_marginStart="14dp"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:background="@drawable/bg_white_10dp"
|
|
|
+ android:paddingStart="11dp"
|
|
|
+ android:paddingEnd="11dp"
|
|
|
+ android:paddingBottom="11dp">
|
|
|
+
|
|
|
+
|
|
|
+ <com.cooleshow.base.widgets.QMUIRadiusImageView
|
|
|
+ android:id="@+id/iv_bg"
|
|
|
+ android:layout_width="105dp"
|
|
|
+ android:layout_height="71dp"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:qmui_corner_radius="5dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ tools:text="张豆张豆豆豆" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="5dp"
|
|
|
+ android:src="@drawable/icon_chat_small"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_title"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:layout_marginBottom="5dp"
|
|
|
+ android:background="@drawable/shape_couse_type_text_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="4dp"
|
|
|
+ android:paddingTop="2dp"
|
|
|
+ android:paddingEnd="4dp"
|
|
|
+ android:paddingBottom="2dp"
|
|
|
+ android:textColor="@color/color_ff8c00"
|
|
|
+ android:textSize="@dimen/sp_11"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/tv_title"
|
|
|
+ tools:text="单簧管" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_line2"
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="11dp"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:background="@color/color_d3d3d3"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_course_name" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_buy_num"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
+ android:textColor="@color/color_ff802c"
|
|
|
+ android:textSize="@dimen/sp_11"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/view_line2"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/view_line2"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/view_line2"
|
|
|
+ tools:text="6人已购买" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_line"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:background="@color/color_f2f2f2"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_bg" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/iv_clock_icon"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
+ android:src="@drawable/icon_clock"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_time"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_clock_icon"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_clock_icon"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_clock_icon"
|
|
|
+ tools:text="2021/09/17 14:00~14:25" />
|
|
|
+
|
|
|
+
|
|
|
+ <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/iv_clock_icon"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_clock_icon"
|
|
|
+ tools:text="未开始" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_status_bt"
|
|
|
+ android:layout_width="70dp"
|
|
|
+ android:layout_height="28dp"
|
|
|
+ android:background="@drawable/shape_course_status_normal"
|
|
|
+ android:gravity="center"
|
|
|
+ android:textColor="@color/color_2dc7aa"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ tools:text="调课" />
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|