|
@@ -0,0 +1,162 @@
|
|
|
+<?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="14dp"
|
|
|
+ android:paddingBottom="9dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_status_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:text="课程状态"
|
|
|
+ android:textColor="@color/color_333333"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_status_tip"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="7dp"
|
|
|
+ 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_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <com.cooleshow.base.widgets.QMUIRadiusImageView
|
|
|
+ android:id="@+id/iv_bg"
|
|
|
+ android:layout_width="105dp"
|
|
|
+ android:layout_height="71dp"
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_status_title"
|
|
|
+ app:qmui_corner_radius="5dp" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="10dp"
|
|
|
+ android:layout_marginEnd="10dp"
|
|
|
+ android:ellipsize="end"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:maxLines="2"
|
|
|
+ android:textColor="@color/color_1a1a1a"
|
|
|
+ android:textSize="@dimen/sp_16"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed"
|
|
|
+ tools:text="张豆张豆豆豆" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_price"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="11dp"
|
|
|
+ android:paddingStart="14dp"
|
|
|
+ android:text="¥120"
|
|
|
+ android:textColor="@color/color_ff0000"
|
|
|
+ android:textSize="@dimen/sp_15"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/iv_bg" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_price_unit"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="11dp"
|
|
|
+ android:paddingStart="7dp"
|
|
|
+ android:text="/4课时"
|
|
|
+ android:textColor="@color/color_999999"
|
|
|
+ android:textSize="@dimen/sp_14"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_price"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_price" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ 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" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_course_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="@dimen/dp_13"
|
|
|
+ android:layout_marginStart="@dimen/dp_3"
|
|
|
+ android:layout_marginBottom="@dimen/dp_4"
|
|
|
+ android:background="@drawable/gray_1_radius_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:paddingStart="@dimen/dp_3"
|
|
|
+ android:paddingEnd="@dimen/dp_3"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_9"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/iv_bg"
|
|
|
+ tools:text="单簧管" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_buy_num"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:textColor="@color/color_ff802c"
|
|
|
+ android:textSize="@dimen/sp_11"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
|
+ tools:text="6人已购买" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view_line"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginEnd="14dp"
|
|
|
+ android:background="@color/color_f2f2f2"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/iv_bg" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_time"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="9dp"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ android:textColor="@color/color_666666"
|
|
|
+ android:textSize="@dimen/sp_13"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view_line"
|
|
|
+ tools:text="2021/09/17 14:00~14:25" />
|
|
|
+
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|