|
@@ -4,29 +4,59 @@
|
|
|
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:layout_marginBottom="12dp"
|
|
|
+ android:background="@drawable/bg_white_6dp"
|
|
|
+ android:paddingStart="12dp"
|
|
|
+ android:paddingEnd="12dp"
|
|
|
android:paddingBottom="9dp">
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_status_title"
|
|
|
+ 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="9dp"
|
|
|
- android:text="课程状态"
|
|
|
+ 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" />
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ tools:text="开课时间:2024-11-16 09:30" />
|
|
|
+
|
|
|
+ <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="11dp"
|
|
|
+ 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: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"
|
|
@@ -36,60 +66,86 @@
|
|
|
android:text="销售中"
|
|
|
android:textColor="@color/color_ff1919"
|
|
|
android:textSize="@dimen/sp_10"
|
|
|
- app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent" />
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_course_name"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/iv_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_course_name" />
|
|
|
|
|
|
- <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:maxLines="1"
|
|
|
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"
|
|
|
+ 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:layout_marginTop="11dp"
|
|
|
+ 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"
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv_des"
|
|
|
+ tools:text="6人已购买" />
|
|
|
+
|
|
|
+
|
|
|
+ <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:textColor="@color/color_f44541"
|
|
|
+ android:textSize="@dimen/sp_20"
|
|
|
android:textStyle="bold"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/iv_bg"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/iv_bg" />
|
|
|
+ android:includeFontPadding="false"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_buy_num"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_buy_num"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_price_unit" />
|
|
|
|
|
|
<TextView
|
|
|
+ android:includeFontPadding="false"
|
|
|
android:id="@+id/tv_price_unit"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginRight="11dp"
|
|
|
- android:paddingStart="7dp"
|
|
|
+ android:paddingStart="2dp"
|
|
|
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" />
|
|
|
+ android:textSize="@dimen/sp_12"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_price" />
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="wrap_content"
|
|
@@ -101,62 +157,6 @@
|
|
|
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>
|